diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-05-17 06:53:24 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-05-17 06:53:24 +0000 |
commit | 9a7a71ed4c8a593e4b946d8a4ac16ce71306248f (patch) | |
tree | 05ab5d860f9eff008d2cf891d689839c76361c5c /libavcodec/ac3dec.c | |
parent | db2f209352272c0c3a48feb9a15bf773d5272c28 (diff) | |
download | ffmpeg-9a7a71ed4c8a593e4b946d8a4ac16ce71306248f.tar.gz |
eac3dec: use 16-bit pre-mantissas instead of 24-bit in AHT decoding. it is
simpler and also fixes a bug in GAQ dequantization.
Originally committed as revision 18860 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index bc39fb35b9..c176cb3d76 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -568,7 +568,7 @@ static void decode_transform_coeffs_ch(AC3DecodeContext *s, int blk, int ch, 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]; } } } |