OSDN Git Service

avcodec/aacenc: Fix "libavcodec/aacenc.c:540:13: warning: ISO C90 forbids mixed decla...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Oct 2015 11:40:04 +0000 (13:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Oct 2015 16:58:11 +0000 (18:58 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacenc.c

index 78eaf40..796038c 100644 (file)
@@ -534,10 +534,10 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
         chans    = tag == TYPE_CPE ? 2 : 1;
         cpe      = &s->cpe[i];
         for (ch = 0; ch < chans; ch++) {
+            float clip_avoidance_factor;
             sce = &cpe->ch[ch];
             ics = &sce->ics;
             s->cur_channel = start_ch + ch;
-            float clip_avoidance_factor;
             overlap  = &samples[s->cur_channel][0];
             samples2 = overlap + 1024;
             la       = samples2 + (448+64);