[FFmpeg-soc] [soc]: r2003 - aac/aac.c
andoma
subversion at mplayerhq.hu
Mon Mar 10 18:57:13 CET 2008
Author: andoma
Date: Mon Mar 10 18:57:13 2008
New Revision: 2003
Log:
Invert scale_bias to get correct sign in output.
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Mon Mar 10 18:57:13 2008
@@ -985,10 +985,10 @@ static int aac_decode_init(AVCodecContex
if(ac->dsp.float_to_int16 == ff_float_to_int16_c) {
ac->add_bias = 385.0f;
- ac->scale_bias = 32768.0f;
+ ac->scale_bias = -32768.0f;
} else {
ac->add_bias = 0.0f;
- ac->scale_bias = 1.0f;
+ ac->scale_bias = -1.0f;
}
for (i = 0; i < 256; i++)
ac->pow2sf_tab[i] = pow(2, (i - 100)/4.) /1024./ac->scale_bias;
More information about the FFmpeg-soc
mailing list