Commit e4fd7b1f authored by James Almer's avatar James Almer

avcodec/opusenc_psy: use av_clip_uintp2()

Fixes fate-source.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent b8eaecbf
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment