Browse Source

avcodec/opusenc_psy: use av_clip_uintp2()

Fixes fate-source.

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n3.4
James Almer 8 years ago
parent
commit
e4fd7b1fea
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/opusenc_psy.c

+ 1
- 1
libavcodec/opusenc_psy.c View File

@@ -299,7 +299,7 @@ static void celt_gauge_psy_weight(OpusPsyContext *s, OpusPsyStep **start,
}

tonal /= 1333136.0f;
f_out->spread = av_clip(lrintf(tonal), 0, 3);
f_out->spread = av_clip_uintp2(lrintf(tonal), 2);

rate = ((float)s->avctx->bit_rate) + frame_bits*frame_size*16;
rate *= s->lambda;


Loading…
Cancel
Save