Mercurial > libavcodec.hg
changeset 9682:0596729ae4af libavcodec
eac3dec: fix bug in GAQ dequantization. large mantissas should only be
decoded when the gain value is 2 or 4.
author | jbr |
---|---|
date | Thu, 21 May 2009 00:15:44 +0000 |
parents | 116836dbd25d |
children | 815664144471 |
files | eac3dec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);