summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-08 15:19:18 +0100
committerJohns <johns98@gmx.net>2012-02-08 15:19:18 +0100
commit918170d00b7c372d87474ca54603a58f19fdb74a (patch)
tree47e5198e1dcddf7b8b9dba2bf7d12a26863e2ee3 /codec.c
parentbc50f37c4d79fde75d40d549f67d12607102869d (diff)
downloadvdr-plugin-softhddevice-918170d00b7c372d87474ca54603a58f19fdb74a.tar.gz
vdr-plugin-softhddevice-918170d00b7c372d87474ca54603a58f19fdb74a.tar.bz2
Add support for AAC LATM audio streams.
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c4
1 files changed, 4 insertions, 0 deletions
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;