Mercurial > libavcodec.hg
comparison ac3dec.c @ 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 | 3c531ec92268 |
children | 571c3c9bc025 |
comparison
equal
deleted
inserted
replaced
7708:5b1991f9f129 | 7709:0b11b0e7b404 |
---|---|
899 return -1; | 899 return -1; |
900 } | 900 } |
901 } | 901 } |
902 | 902 |
903 /* exponent strategies for each channel */ | 903 /* exponent strategies for each channel */ |
904 s->exp_strategy[blk][CPL_CH] = EXP_REUSE; | |
905 s->exp_strategy[blk][s->lfe_ch] = EXP_REUSE; | |
906 for (ch = !cpl_in_use; ch <= s->channels; ch++) { | 904 for (ch = !cpl_in_use; ch <= s->channels; ch++) { |
905 if (!s->eac3) | |
907 s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch)); | 906 s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch)); |
908 if(s->exp_strategy[blk][ch] != EXP_REUSE) | 907 if(s->exp_strategy[blk][ch] != EXP_REUSE) |
909 bit_alloc_stages[ch] = 3; | 908 bit_alloc_stages[ch] = 3; |
910 } | 909 } |
911 | 910 |