[FFmpeg-soc] [soc]: r3311 - aacenc/aacpsy.c
kostya
subversion at mplayerhq.hu
Fri Aug 15 10:00:36 CEST 2008
Author: kostya
Date: Fri Aug 15 10:00:36 2008
New Revision: 3311
Log:
200l: restore accidentally removed variable assignment
Modified:
aacenc/aacpsy.c
Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c (original)
+++ aacenc/aacpsy.c Fri Aug 15 10:00:36 2008
@@ -75,6 +75,7 @@ static inline float calc_distortion(floa
const float Q = ff_aac_pow2sf_tab[200 - scale_idx + SCALE_ONE_POS - SCALE_DIV_512];
const float IQ = ff_aac_pow2sf_tab[200 + scale_idx - SCALE_ONE_POS + SCALE_DIV_512];
for(i = 0; i < size; i++){
+ coef = fabs(c[i]);
q = quant(c[i], Q);
unquant = (q * cbrt(q)) * IQ;
sum += (coef - unquant) * (coef - unquant);
More information about the FFmpeg-soc
mailing list