From 55ef093222ff162bfaffc95e1546f95e88532c0f Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Fri, 5 Jan 2018 05:09:49 +0100
Subject: [PATCH] lavc/opusenc_psy: Split variable declarations and code.
Fixes a warning:
libavcodec/opusenc_psy.c:407:5: warning: ISO C90 forbids mixed declarations and code
---
libavcodec/opusenc_psy.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
@@ -398,14 +398,12 @@ static void celt_search_for_dual_stereo(OpusPsyContext *s, CeltFrame *f)
static void celt_search_for_intensity(OpusPsyContext *s, CeltFrame *f)
{
int i, best_band = CELT_MAX_BANDS - 1;
- float dist, best_dist = FLT_MAX;
+ float dist, best_dist = FLT_MAX, 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);
--
1.7.10.4