[SCM] libav/experimental: eac3dec: fix bug in GAQ dequantization. large mantissas should only be decoded when the gain value is 2 or 4.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:46:12 UTC 2013


The following commit has been merged in the experimental branch:
commit 37a1cc4834afd46a278860bb014fdaa1d02e124a
Author: Justin Ruggles <justin.ruggles at gmail.com>
Date:   Thu May 21 00:15:44 2009 +0000

    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

diff --git a/libavcodec/eac3dec.c b/libavcodec/eac3dec.c
index 62f6d79..0cbf5b9 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);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list