[FFmpeg-soc] [soc]: r4449 - aacenc/aaccoder.c

alexc subversion at mplayerhq.hu
Mon Jun 15 23:52:47 CEST 2009


Author: alexc
Date: Mon Jun 15 23:52:46 2009
New Revision: 4449

Log:
Make maxq hold the largest absolute value for each band not the largest value.

Modified:
   aacenc/aaccoder.c

Modified: aacenc/aaccoder.c
==============================================================================
--- aacenc/aaccoder.c	Mon Jun 15 23:51:38 2009	(r4448)
+++ aacenc/aaccoder.c	Mon Jun 15 23:52:46 2009	(r4449)
@@ -929,7 +929,7 @@ static void search_for_quantizers_faac(A
             for(w2 = 0; w2 < sce->ics.group_len[w]; w2++){
                 for(i = 0; i < size; i++){
                     float t = coefs[w2*128+i]*coefs[w2*128+i];
-                    maxq[w*16+g] = fmaxf(maxq[w*16+g], coefs[w2*128 + i]);
+                    maxq[w*16+g] = fmaxf(maxq[w*16+g], fabsf(coefs[w2*128 + i]));
                     thr += t;
                     if(sce->ics.num_windows == 1 && maxval < t){
                         maxval = t;


More information about the FFmpeg-soc mailing list