Commit a9723e66 authored by Max Kellermann's avatar Max Kellermann

aac: get decoder command from decoder_data()

Removed a superfluous decoder_get_command() call.
parent 35a4ca24
...@@ -319,6 +319,7 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) ...@@ -319,6 +319,7 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
uint16_t bitRate = 0; uint16_t bitRate = 0;
AacBuffer b; AacBuffer b;
bool initialized = false; bool initialized = false;
enum decoder_command cmd;
initAacBuffer(&b, mpd_decoder, inStream); initAacBuffer(&b, mpd_decoder, inStream);
aac_parse_header(&b, &totalTime); aac_parse_header(&b, &totalTime);
...@@ -414,10 +415,10 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) ...@@ -414,10 +415,10 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
sampleBufferLen = sampleCount * 2; sampleBufferLen = sampleCount * 2;
decoder_data(mpd_decoder, NULL, sampleBuffer, cmd = decoder_data(mpd_decoder, NULL, sampleBuffer,
sampleBufferLen, file_time, sampleBufferLen, file_time,
bitRate, NULL); bitRate, NULL);
} while (decoder_get_command(mpd_decoder) == DECODE_COMMAND_NONE); } while (cmd == DECODE_COMMAND_NONE);
faacDecClose(decoder); faacDecClose(decoder);
if (b.buffer) if (b.buffer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment