1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Originally committed as revision 15000 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Justin Ruggles 2008-08-27 23:11:05 +00:00
parent 34fab90f18
commit 6b4bfed965

View 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;