diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2008-08-27 23:11:05 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2008-08-27 23:11:05 +0000 |
commit | 6b4bfed96525cad5706933fff99b3a36b6da728c (patch) | |
tree | b460367e806e4ea702f5b05e12b06d5ef5ad29ce /libavcodec/ac3dec.c | |
parent | 34fab90f1848ff652fdcab5ca9815b31261b7aa3 (diff) | |
download | ffmpeg-streaming-6b4bfed96525cad5706933fff99b3a36b6da728c.zip ffmpeg-streaming-6b4bfed96525cad5706933fff99b3a36b6da728c.tar.gz |
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
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 3a7eec9..2685663 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -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; |