# HG changeset patch # User jbr # Date 1242864944 0 # Node ID 0596729ae4afa34e67f0e1e2934c4c21ca03b388 # Parent 116836dbd25dbec7d7b64b9de5c7d8c8f6acc7f3 eac3dec: fix bug in GAQ dequantization. large mantissas should only be decoded when the gain value is 2 or 4. diff -r 116836dbd25d -r 0596729ae4af eac3dec.c --- a/eac3dec.c Thu May 21 00:15:03 2009 +0000 +++ b/eac3dec.c Thu May 21 00:15:44 2009 +0000 @@ -175,7 +175,7 @@ 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);