From ca20179287ab107b65e5760dfd3da7364dbc9067 Mon Sep 17 00:00:00 2001 From: jbr Date: Thu, 21 May 2009 00:15:44 +0000 Subject: [PATCH] eac3dec: fix bug in GAQ dequantization git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18889 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/eac3dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/eac3dec.c b/libavcodec/eac3dec.c index 62f6d792cf..0cbf5b9494 100644 --- a/libavcodec/eac3dec.c +++ b/libavcodec/eac3dec.c @@ -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); -- 2.11.4.GIT