Mercurial > libavcodec.hg
diff ac3dec.c @ 9661:1fe22274393a libavcodec
eac3dec: use 16-bit pre-mantissas instead of 24-bit in AHT decoding. it is
simpler and also fixes a bug in GAQ dequantization.
author | jbr |
---|---|
date | Sun, 17 May 2009 06:53:24 +0000 |
parents | b4350a6fb24a |
children | 15276eb66180 |
line wrap: on
line diff
--- a/ac3dec.c Sun May 17 00:54:29 2009 +0000 +++ b/ac3dec.c Sun May 17 06:53:24 2009 +0000 @@ -568,7 +568,7 @@ if (!blk) ff_eac3_decode_transform_coeffs_aht_ch(s, ch); for (bin = s->start_freq[ch]; bin < s->end_freq[ch]; bin++) { - s->fixed_coeffs[ch][bin] = s->pre_mantissa[ch][bin][blk] >> s->dexps[ch][bin]; + s->fixed_coeffs[ch][bin] = (s->pre_mantissa[ch][bin][blk] << 8) >> s->dexps[ch][bin]; } } }