X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fopusenc_psy.c;h=5a50db942f731bbd9fed664b11aa2cba0ed87c02;hb=56ed01169269451b7bb327c6bb250eec36ee3de2;hp=8aded2140de152c2c55354996b787ef27e2a3dbb;hpb=0cc8e34a94c84132cf5b0f6472c5f61c8a66cee1;p=ffmpeg diff --git a/libavcodec/opusenc_psy.c b/libavcodec/opusenc_psy.c index 8aded2140de..5a50db942f7 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);