[FFmpeg-soc] [soc]: r3747 - aacenc/aacpsy.c
kostya
subversion at mplayerhq.hu
Wed Sep 17 19:00:46 CEST 2008
Author: kostya
Date: Wed Sep 17 19:00:46 2008
New Revision: 3747
Log:
26.403l of cola: accumulator should be cleared before calculation
Modified:
aacenc/aacpsy.c
Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c (original)
+++ aacenc/aacpsy.c Wed Sep 17 19:00:46 2008
@@ -270,6 +270,7 @@ static void psy_3gpp_analyze(FFPsyContex
for(w = 0; w < wi->num_windows*16; w += 16){
for(g = 0; g < num_bands; g++){
Psy3gppBand *band = &pch->band[w+g];
+ band->energy = 0.0f;
for(i = 0; i < band_sizes[g]; i++)
band->energy += coefs[start+i] * coefs[start+i];
band->energy *= 1.0f / (512*512);
More information about the FFmpeg-soc
mailing list