diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-03-20 16:02:34 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-03-20 16:02:34 +0000 |
commit | 90df1b4a7678076c28ee577f9c53a8092a4dc1fa (patch) | |
tree | c3199beb5c4b96a23a661de6667dc94bd25730e0 | |
parent | eabebcbc90a012afc8489e2634ef50e30bf97456 (diff) | |
download | rockbox-90df1b4a7678076c28ee577f9c53a8092a4dc1fa.tar.gz rockbox-90df1b4a7678076c28ee577f9c53a8092a4dc1fa.zip |
Backport r29622 to v3.8 branch. Fixes FS#12019, a bug in the AAC SBR decoding.
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_8@29623 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/libfaad/sbr_hfgen.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/libfaad/sbr_hfgen.c b/apps/codecs/libfaad/sbr_hfgen.c index 1e32eb26bc..bdc7d5a0a2 100644 --- a/apps/codecs/libfaad/sbr_hfgen.c +++ b/apps/codecs/libfaad/sbr_hfgen.c @@ -186,13 +186,13 @@ typedef struct real_t det; } acorr_coef; -/* Within auto_correlation(...) a pre-shift of >>2 is needed to avoid overflow - * when multiply-adding the FRACT-variables -- FRACT part is 31 bits. After the - * calculation has been finished the result 'ac->det' needs to be - * post-shifted by <<(4*2). This pre-/post-shifting is needed for FIXED_POINT - * only. */ +/* Within auto_correlation(...) a pre-shift of >>ACDET_EXP is needed to avoid + * overflow when multiply-adding the FRACT-variables -- FRACT part is 31 bits. + * After the calculation has been finished the result 'ac->det' needs to be + * post-shifted by <<(4*ACDET_EXP). This pre-/post-shifting is needed for + * FIXED_POINT only. */ #ifdef FIXED_POINT -#define ACDET_EXP 2 +#define ACDET_EXP 3 #define ACDET_PRE(A) (A)>>ACDET_EXP #define ACDET_POST(A) (A)<<(4*ACDET_EXP) #else |