diff options
author | James Almer <jamrial@gmail.com> | 2017-09-23 13:23:27 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-23 13:23:27 -0300 |
commit | e4fd7b1fea7e2d3306f159d285ea420a1f250dcc (patch) | |
tree | e79c9565634f3fc66b55d1ecc6bab64bfe0c5fcd | |
parent | b8eaecbf39a59fce256ee5ffa7c51dd44c83bec1 (diff) | |
download | ffmpeg-e4fd7b1fea7e2d3306f159d285ea420a1f250dcc.tar.gz |
avcodec/opusenc_psy: use av_clip_uintp2()
Fixes fate-source.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/opusenc_psy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opusenc_psy.c b/libavcodec/opusenc_psy.c index e6858f1856..bb673bef68 100644 --- a/libavcodec/opusenc_psy.c +++ b/libavcodec/opusenc_psy.c @@ -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; |