avcodec/opusenc_psy: Fix mixed declaration and statement
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 11 Oct 2017 00:13:16 +0000 (02:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 11 Oct 2017 00:13:16 +0000 (02:13 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/opusenc_psy.c

index bb673be..b446d41 100644 (file)
@@ -370,8 +370,9 @@ static int celt_search_for_tf(OpusPsyContext *s, OpusPsyStep **start, CeltFrame
     for (cway = 0; cway < 2; cway++) {
         int mag[2];
         int base = f->transient ? 120 : 960;
+        int i;
 
-        for (int i = 0; i < 2; i++) {
+        for (i = 0; i < 2; i++) {
             int c = ff_celt_tf_select[f->size][f->transient][cway][i];
             mag[i] = c < 0 ? base >> FFABS(c) : base << FFABS(c);
         }