[FFmpeg-soc] [soc]: r3636 - eac3/eac3dec.c

jbr subversion at mplayerhq.hu
Wed Aug 27 03:53:34 CEST 2008


Author: jbr
Date: Wed Aug 27 03:53:33 2008
New Revision: 3636

Log:
add right-shift by 8 to calculation of GAQ "B" value

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Wed Aug 27 03:53:33 2008
@@ -151,7 +151,7 @@ void ff_eac3_decode_transform_coeffs_aht
                     mant = get_sbits(gbc, bits-2+log_gain) << (26-log_gain-bits);
                     /* remap mantissa value to correct for asymmetric quantization */
                     if (mant >= 0)
-                        b = 32768 >> log_gain;
+                        b = 32768 >> (log_gain+8);
                     else
                         b = ff_eac3_gaq_remap_2_4_b[hebap-8][log_gain-1];
                     mant += (ff_eac3_gaq_remap_2_4_a[hebap-8][log_gain-1] * (mant>>8) + b) >> 7;



More information about the FFmpeg-soc mailing list