[FFmpeg-soc] [soc]: r1811 - aac/aac.c
superdump
subversion at mplayerhq.hu
Wed Jan 9 18:12:56 CET 2008
Author: superdump
Date: Wed Jan 9 18:12:56 2008
New Revision: 1811
Log:
Make bias values have type float as they are always used in float calculations
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Wed Jan 9 18:12:56 2008
@@ -356,8 +356,8 @@ typedef struct {
AVRandomState random_state;
//bias values
- int add_bias;
- int scale_bias;
+ float add_bias;
+ float scale_bias;
// statistics
int num_frame;
@@ -847,11 +847,11 @@ static int aac_decode_init(AVCodecContex
ac->ivquant_tab[i] = pow(i, 4./3);
if(ac->dsp.float_to_int16 == ff_float_to_int16_c) {
- ac->add_bias = 385;
- ac->scale_bias = 32768;
+ ac->add_bias = 385.0f;
+ ac->scale_bias = 32768.0f;
} else {
- ac->add_bias = 0;
- ac->scale_bias = 1;
+ ac->add_bias = 0.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