From a9723e661a1c0bda6d48ab0f9bebcddaac656ffb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 12 Nov 2008 08:25:06 +0100 Subject: [PATCH] aac: get decoder command from decoder_data() Removed a superfluous decoder_get_command() call. --- src/decoder/aac_plugin.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index 8990fa1ab..d0ed49712 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -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, - sampleBufferLen, file_time, - bitRate, NULL); - } while (decoder_get_command(mpd_decoder) == DECODE_COMMAND_NONE); + cmd = decoder_data(mpd_decoder, NULL, sampleBuffer, + sampleBufferLen, file_time, + bitRate, NULL); + } while (cmd == DECODE_COMMAND_NONE); faacDecClose(decoder); if (b.buffer)