]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/opusenc_psy: Fix warning: ISO C90 forbids mixed declarations and code
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 19 Apr 2018 21:28:26 +0000 (23:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 19 Apr 2018 21:28:26 +0000 (23:28 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/opusenc_psy.c

index 8aded2140de152c2c55354996b787ef27e2a3dbb..5a50db942f731bbd9fed664b11aa2cba0ed87c02 100644 (file)
@@ -399,13 +399,12 @@ static void celt_search_for_intensity(OpusPsyContext *s, CeltFrame *f)
 {
     int i, best_band = CELT_MAX_BANDS - 1;
     float dist, best_dist = FLT_MAX;
+    /* TODO: fix, make some heuristic up here using the lambda value */
+    float end_band = 0;
 
     if (s->avctx->channels < 2)
         return;
 
-    /* TODO: fix, make some heuristic up here using the lambda value */
-    float end_band = 0;
-
     for (i = f->end_band; i >= end_band; i--) {
         f->intensity_stereo = i;
         bands_dist(s, f, &dist);