]> git.sesse.net Git - ffmpeg/commitdiff
do not read exponent strategies from each block for E-AC-3 since they are in the...
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 27 Aug 2008 23:11:05 +0000 (23:11 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 27 Aug 2008 23:11:05 +0000 (23:11 +0000)
Originally committed as revision 15000 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3dec.c

index 3a7eec902f1ec933bee7d6f42dda8d832f4dadb8..26856632c75773eba45f99b90b69406c40d97faa 100644 (file)
@@ -901,9 +901,8 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
     }
 
     /* 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;