[FFmpeg-cvslog] r15000 - trunk/libavcodec/ac3dec.c

jbr subversion
Thu Aug 28 01:11:05 CEST 2008


Author: jbr
Date: Thu Aug 28 01:11:05 2008
New Revision: 15000

Log:
do not read exponent strategies from each block for E-AC-3 since they are in the header

Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	(original)
+++ trunk/libavcodec/ac3dec.c	Thu Aug 28 01:11:05 2008
@@ -901,9 +901,8 @@ static int decode_audio_block(AC3DecodeC
     }
 
     /* exponent strategies for each channel */
-    s->exp_strategy[blk][CPL_CH] = EXP_REUSE;
-    s->exp_strategy[blk][s->lfe_ch] = EXP_REUSE;
     for (ch = !cpl_in_use; ch <= s->channels; ch++) {
+        if (!s->eac3)
         s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch));
         if(s->exp_strategy[blk][ch] != EXP_REUSE)
             bit_alloc_stages[ch] = 3;




More information about the ffmpeg-cvslog mailing list