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

superdump subversion at mplayerhq.hu
Wed May 21 15:58:01 CEST 2008


Author: superdump
Date: Wed May 21 15:58:01 2008
New Revision: 2177

Log:
Avoid use of continue by using if / else if / else


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Wed May 21 15:58:01 2008
@@ -1215,22 +1215,16 @@ static int decode_spectral_data(AACConte
             const int cur_cb = cb[g][i];
             const int dim = cur_cb >= FIRST_PAIR_HCB ? 2 : 4;
             int group;
-            if (cur_cb == INTENSITY_HCB2 || cur_cb == INTENSITY_HCB) {
-                continue;
-            }
             if (cur_cb == NOISE_HCB) {
                 for (group = 0; group < ics->group_len[g]; group++) {
                     for (k = offsets[i]; k < offsets[i+1]; k++)
                         icoef[group*128+k] = av_random(&ac->random_state) & 0x0000FFFF;
                 }
-                continue;
-            }
-            if (cur_cb == ZERO_HCB) {
+            }else if (cur_cb == ZERO_HCB) {
                 for (group = 0; group < ics->group_len[g]; group++) {
                     memset(icoef + group * 128 + offsets[i], 0, (offsets[i+1] - offsets[i])*sizeof(int));
                 }
-                continue;
-            }
+            }else if (cur_cb != INTENSITY_HCB2 && cur_cb != INTENSITY_HCB) {
             for (group = 0; group < ics->group_len[g]; group++) {
                 for (k = offsets[i]; k < offsets[i+1]; k += dim) {
                     int index = get_vlc2(gb, ac->books[cur_cb - 1].table, 6, 3);
@@ -1267,6 +1261,7 @@ static int decode_spectral_data(AACConte
                 }
                 assert(k == offsets[i+1]);
             }
+            }
         }
         icoef += ics->group_len[g]*128;
     }



More information about the FFmpeg-soc mailing list