aac: get decoder command from decoder_data()

Removed a superfluous decoder_get_command() call.
This commit is contained in:
Max Kellermann 2008-11-12 08:25:06 +01:00
parent 35a4ca2421
commit a9723e661a
1 changed files with 5 additions and 4 deletions

View File

@ -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)
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)