[FFmpeg-soc] [soc]: r3434 - aacenc/aacenc.c

kostya subversion at mplayerhq.hu
Mon Aug 18 07:55:55 CEST 2008


Author: kostya
Date: Mon Aug 18 07:55:55 2008
New Revision: 3434

Log:
Merge two loops

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Mon Aug 18 07:55:55 2008
@@ -402,12 +402,10 @@ static int calculate_band_bits(AACEncCon
                 for(j = 0; j < dim; j++){
                     coef_abs[j] = FFABS(cpe->ch[channel].icoefs[start+i+j]);
                     idx = idx * range + FFMIN(coef_abs[j], 16);
-                }
-                bits += ff_aac_spectral_bits[cb][idx];
-                for(j = 0; j < dim; j++){
                     if(cb == ESC_BT && coef_abs[j] > 15)
                         bits += av_log2(coef_abs[j]) * 2 - 4 + 1;
                 }
+                bits += ff_aac_spectral_bits[cb][idx];
             }
             start += 128;
         }



More information about the FFmpeg-soc mailing list