comparison ac3dec.c @ 6959:3ba980378d90 libavcodec

simplify
author jbr
date Sat, 31 May 2008 22:12:01 +0000
parents 1c523b5212cd
children cdde357b67d8
comparison
equal deleted inserted replaced
6958:1c523b5212cd 6959:3ba980378d90
901 901
902 /* exponent strategies for each channel */ 902 /* exponent strategies for each channel */
903 s->exp_strategy[CPL_CH] = EXP_REUSE; 903 s->exp_strategy[CPL_CH] = EXP_REUSE;
904 s->exp_strategy[s->lfe_ch] = EXP_REUSE; 904 s->exp_strategy[s->lfe_ch] = EXP_REUSE;
905 for (ch = !s->cpl_in_use; ch <= s->channels; ch++) { 905 for (ch = !s->cpl_in_use; ch <= s->channels; ch++) {
906 if(ch == s->lfe_ch) 906 s->exp_strategy[ch] = get_bits(gbc, 2 - (ch == s->lfe_ch));
907 s->exp_strategy[ch] = get_bits(gbc, 1);
908 else
909 s->exp_strategy[ch] = get_bits(gbc, 2);
910 if(s->exp_strategy[ch] != EXP_REUSE) 907 if(s->exp_strategy[ch] != EXP_REUSE)
911 bit_alloc_stages[ch] = 3; 908 bit_alloc_stages[ch] = 3;
912 } 909 }
913 910
914 /* channel bandwidth */ 911 /* channel bandwidth */