summaryrefslogtreecommitdiffstats
path: root/libavcodec/opusenc_psy.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-04-19 23:28:26 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-04-19 23:28:26 +0200
commitf8b17fe33233237eea304d4fb0636539a131c1b2 (patch)
tree0ae68c104646abc4d833e874708d01813f230cc7 /libavcodec/opusenc_psy.c
parent5549488bbf3a23c0fb9833cefc6354f97055dd96 (diff)
downloadffmpeg-streaming-f8b17fe33233237eea304d4fb0636539a131c1b2.zip
ffmpeg-streaming-f8b17fe33233237eea304d4fb0636539a131c1b2.tar.gz
avcodec/opusenc_psy: Fix warning: ISO C90 forbids mixed declarations and code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/opusenc_psy.c')
-rw-r--r--libavcodec/opusenc_psy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/opusenc_psy.c b/libavcodec/opusenc_psy.c
index 8aded21..5a50db9 100644
--- a/libavcodec/opusenc_psy.c
+++ b/libavcodec/opusenc_psy.c
@@ -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);
OpenPOWER on IntegriCloud