[FFmpeg-soc] [soc]: r3748 - aacenc/aacpsy.c
kostya
subversion at mplayerhq.hu
Wed Sep 17 19:01:20 CEST 2008
Author: kostya
Date: Wed Sep 17 19:01:20 2008
New Revision: 3748
Log:
1l: fix off-by-one error
Modified:
aacenc/aacpsy.c
Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c (original)
+++ aacenc/aacpsy.c Wed Sep 17 19:01:20 2008
@@ -287,7 +287,7 @@ static void psy_3gpp_analyze(FFPsyContex
band[g].thr = FFMAX(band[g].thr, band[g-1].thr * coeffs->spread_low[g-1]);
}
for(g = num_bands - 2; g >= 0; g--){
- band[g].thr = FFMAX(band[g].thr, band[g+1].thr * coeffs->spread_hi [g+1]);
+ band[g].thr = FFMAX(band[g].thr, band[g+1].thr * coeffs->spread_hi [g]);
}
for(g = 0; g < num_bands; g++){
band[g].thr_quiet = FFMAX(band[g].thr, coeffs->ath[g]);
More information about the FFmpeg-soc
mailing list