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

jbr subversion at mplayerhq.hu
Tue Jan 8 05:29:21 CET 2008


Author: jbr
Date: Tue Jan  8 05:29:21 2008
New Revision: 1798

Log:
fix bug that manifests itself when both coupling and aht are used

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Tue Jan  8 05:29:21 2008
@@ -553,7 +553,11 @@ static int parse_audfrm(AC3DecodeContext
         for (ch = (num_cpl_blocks != 6); ch <= s->channels; ch++) {
             nchregs = 0;
             for (blk = 0; blk < 6; blk++)
+                if (ch)
                 nchregs += (s->exp_strategy[blk][ch] != EXP_REUSE);
+                else
+                    nchregs += s->cpl_strategy_exists[blk] ||
+                               (s->exp_strategy[blk][CPL_CH] != EXP_REUSE);
             s->channel_uses_aht[ch] = (nchregs == 1) && get_bits1(gbc);
         }
     } else {



More information about the FFmpeg-soc mailing list