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

andoma subversion at mplayerhq.hu
Sat Jan 12 11:51:36 CET 2008


Author: andoma
Date: Sat Jan 12 11:51:35 2008
New Revision: 1826

Log:
pop declaration of 'int i' to function scope



Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Sat Jan 12 11:51:35 2008
@@ -1726,8 +1726,9 @@ static void window_trans(AACContext * ac
     const float * lwindow_prev = (ics->window_shape_prev) ? ac->kbd_long_1024 : ac->sine_long_1024;
     const float * swindow_prev = (ics->window_shape_prev) ? ac->kbd_short_128 : ac->sine_short_128;
     float * buf = ac->buf_mdct;
+    int i;
+
     if (ics->window_sequence != EIGHT_SHORT_SEQUENCE) {
-        int i;
         ff_imdct_calc(&ac->mdct, buf, in, out); // out can be abused for now as a temp buffer
         if (ac->is_saved) {
             if (ics->window_sequence != LONG_STOP_SEQUENCE) {
@@ -1748,8 +1749,6 @@ static void window_trans(AACContext * ac
             memset(saved + 576, 0, 448 * sizeof(float));
         }
     } else {
-        int i;
-
         for (i = 0; i < 2048; i += 256) {
             ff_imdct_calc(&ac->mdct_small, buf + i, in + i/2, out);
             ac->dsp.vector_fmul_reverse(ac->revers + i/2, buf + i + 128, swindow, 128);



More information about the FFmpeg-soc mailing list