aac: get decoder command from decoder_data()
Removed a superfluous decoder_get_command() call.
This commit is contained in:
parent
35a4ca2421
commit
a9723e661a
|
@ -319,6 +319,7 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
|
|||
uint16_t bitRate = 0;
|
||||
AacBuffer b;
|
||||
bool initialized = false;
|
||||
enum decoder_command cmd;
|
||||
|
||||
initAacBuffer(&b, mpd_decoder, inStream);
|
||||
aac_parse_header(&b, &totalTime);
|
||||
|
@ -414,10 +415,10 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
|
|||
|
||||
sampleBufferLen = sampleCount * 2;
|
||||
|
||||
decoder_data(mpd_decoder, NULL, sampleBuffer,
|
||||
cmd = decoder_data(mpd_decoder, NULL, sampleBuffer,
|
||||
sampleBufferLen, file_time,
|
||||
bitRate, NULL);
|
||||
} while (decoder_get_command(mpd_decoder) == DECODE_COMMAND_NONE);
|
||||
} while (cmd == DECODE_COMMAND_NONE);
|
||||
|
||||
faacDecClose(decoder);
|
||||
if (b.buffer)
|
||||
|
|
Loading…
Reference in New Issue