Browse Source

avcodec/opusenc_psy: Fix warning: ISO C90 forbids mixed declarations and code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f8b17fe332)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.0
Michael Niedermayer 7 years ago
parent
commit
bc2ceeb3ac
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      libavcodec/opusenc_psy.c

+ 2
- 3
libavcodec/opusenc_psy.c View File

@@ -399,13 +399,12 @@ static void celt_search_for_intensity(OpusPsyContext *s, CeltFrame *f)
{ {
int i, best_band = CELT_MAX_BANDS - 1; int i, best_band = CELT_MAX_BANDS - 1;
float dist, best_dist = FLT_MAX; 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) if (s->avctx->channels < 2)
return; 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--) { for (i = f->end_band; i >= end_band; i--) {
f->intensity_stereo = i; f->intensity_stereo = i;
bands_dist(s, f, &dist); bands_dist(s, f, &dist);


Loading…
Cancel
Save