From 918170d00b7c372d87474ca54603a58f19fdb74a Mon Sep 17 00:00:00 2001 From: Johns Date: Wed, 8 Feb 2012 15:19:18 +0100 Subject: Add support for AAC LATM audio streams. --- codec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'codec.c') diff --git a/codec.c b/codec.c index a514a33..434203a 100644 --- a/codec.c +++ b/codec.c @@ -852,6 +852,10 @@ void CodecAudioDecode(AudioDecoder * audio_decoder, const AVPacket * avpkt) dpkt->dts = audio_decoder->AudioParser->dts; buf_sz = sizeof(buf); l = avcodec_decode_audio3(audio_ctx, buf, &buf_sz, dpkt); + if (l == AVERROR(EAGAIN)) { + index += n; // this is needed for aac latm + continue; + } if (l < 0) { // no audio frame could be decompressed Error(_("codec: error audio data at %d\n"), index); break; -- cgit v1.2.3