[FFmpeg-soc] [soc]: r2703 - aac/aac.c

superdump subversion at mplayerhq.hu
Sun Jul 6 13:28:22 CEST 2008


Author: superdump
Date: Sun Jul  6 13:28:21 2008
New Revision: 2703

Log:
Merge two loops


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Sun Jul  6 13:28:21 2008
@@ -1254,10 +1254,8 @@ static void quant_to_spec_tool(AACContex
     const int c = 1024/ics->num_window_groups;
     int g, i, group, k;
 
-    for(g = 0; g < ics->num_window_groups; g++)
-        memset(coef + g * 128 + offsets[ics->max_sfb], 0, sizeof(float)*(c - offsets[ics->max_sfb]));
-
     for (g = 0; g < ics->num_window_groups; g++) {
+        memset(coef + g * 128 + offsets[ics->max_sfb], 0, sizeof(float)*(c - offsets[ics->max_sfb]));
         for (i = 0; i < ics->max_sfb; i++) {
             if (cb[g][i] == NOISE_HCB) {
                 for (group = 0; group < ics->group_len[g]; group++) {



More information about the FFmpeg-soc mailing list