[FFmpeg-soc] [soc]: r1557 - eac3/eac3dec.c

jbr subversion at mplayerhq.hu
Thu Dec 13 04:20:59 CET 2007


Author: jbr
Date: Thu Dec 13 04:20:59 2007
New Revision: 1557

Log:
only decode the first substream, skip any additional substreams

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Thu Dec 13 04:20:59 2007
@@ -1256,6 +1256,13 @@ static int eac3_decode_frame(AVCodecCont
     if (parse_bsi(&gbc, c) || parse_audfrm(&gbc, c))
         return -1;
 
+    if (c->substreamid) {
+        // TODO: allow user to select which substream to decode
+        av_log(avctx, AV_LOG_INFO, "Skipping additional substream #%d\n",
+               c->substreamid);
+        return -1;
+    }
+
     if (c->sr_code == EAC3_SR_CODE_REDUCED) {
         avctx->sample_rate = ff_ac3_sample_rate_tab[c->sr_code2] / 2;
     } else {



More information about the FFmpeg-soc mailing list