From c38a6077eea88470280f854a73d17ff25777da29 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michael@niedermayer.cc>
Date: Sat, 17 Oct 2015 13:40:04 +0200
Subject: [PATCH] avcodec/aacenc: Fix "libavcodec/aacenc.c:540:13: warning: ISO
 C90 forbids mixed declarations and code"

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/aacenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 78eaf405b98..796038c0dab 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -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);
-- 
GitLab