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

superdump subversion at mplayerhq.hu
Thu Aug 7 13:34:36 CEST 2008


Author: superdump
Date: Thu Aug  7 13:34:35 2008
New Revision: 3057

Log:
10l - intended to move the loop over the window group inside the while loop


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Thu Aug  7 13:34:35 2008
@@ -1111,18 +1111,17 @@ static void apply_intensity_stereo(Chann
     for (g = 0; g < ics->num_window_groups; g++) {
             for (i = 0; i < ics->max_sfb;) {
                 if (sce1->band_type[g][i] == INTENSITY_BT || sce1->band_type[g][i] == INTENSITY_BT2) {
-        for (gp = 0; gp < ics->group_len[g]; gp++) {
                     const int bt_run_end = sce1->band_type_run_end[g][i];
                     while (i < bt_run_end) {
                         c = -1 + 2 * (sce1->band_type[g][i] - 14);
                         if (cpe->ms.present)
                             c *= 1 - 2 * cpe->ms.mask[g][i];
                         scale = c * sce1->sf[g][i];
+        for (gp = 0; gp < ics->group_len[g]; gp++)
                         for (k = offsets[i]; k < offsets[i+1]; k++)
                             coef1[gp*128 + k] = scale * coef0[gp*128 + k];
                         i++;
                     }
-        }
                 } else
                     i = sce1->band_type_run_end[g][i];
             }



More information about the FFmpeg-soc mailing list