[FFmpeg-soc] [soc]: r2214 - eac3/eac3dec.c
jbr
subversion at mplayerhq.hu
Mon May 26 21:07:03 CEST 2008
Author: jbr
Date: Mon May 26 21:07:03 2008
New Revision: 2214
Log:
simplify large mantissa GAQ decoding
Modified:
eac3/eac3dec.c
Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c (original)
+++ eac3/eac3dec.c Mon May 26 21:07:03 2008
@@ -230,13 +230,7 @@ void ff_eac3_get_transform_coeffs_aht_ch
int pre_mantissa = get_sbits(gbc, gbits);
if (pre_mantissa == -(1 << (gbits-1))) {
// large mantissa
- if(log_gain == 1) {
- // Gk = 2
- mant = get_sbits(gbc, bits-1) << (25 - bits);
- } else {
- // Gk = 4
- mant = get_sbits(gbc, bits) << (24 - bits);
- }
+ mant = get_sbits(gbc, bits-2+log_gain) << (26-log_gain-bits);
remap = 1;
} else {
mant = pre_mantissa << (24 - bits);
More information about the FFmpeg-soc
mailing list