Mercurial > libavcodec.hg
changeset 7709:0b11b0e7b404 libavcodec
do not read exponent strategies from each block for E-AC-3 since they are in the header
author | jbr |
---|---|
date | Wed, 27 Aug 2008 23:11:05 +0000 |
parents | 5b1991f9f129 |
children | 571c3c9bc025 |
files | ac3dec.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3dec.c Wed Aug 27 20:25:47 2008 +0000 +++ b/ac3dec.c Wed Aug 27 23:11:05 2008 +0000 @@ -901,9 +901,8 @@ } /* 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;