Browse Source

eac3dec: fix bug in GAQ dequantization. large mantissas should only be

decoded when the gain value is 2 or 4.

Originally committed as revision 18889 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Justin Ruggles 16 years ago
parent
commit
37a1cc4834
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/eac3dec.c

+ 1
- 1
libavcodec/eac3dec.c View File

@@ -175,7 +175,7 @@ void ff_eac3_decode_transform_coeffs_aht_ch(AC3DecodeContext *s, int ch)

for (blk = 0; blk < 6; blk++) {
int mant = get_sbits(gbc, gbits);
if (mant == -(1 << (gbits-1))) {
if (log_gain && mant == -(1 << (gbits-1))) {
/* large mantissa */
int b;
int mbits = bits - (2 - log_gain);


Loading…
Cancel
Save