projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8eaecb
)
avcodec/opusenc_psy: use av_clip_uintp2()
author
James Almer
<jamrial@gmail.com>
Sat, 23 Sep 2017 16:23:27 +0000
(13:23 -0300)
committer
James Almer
<jamrial@gmail.com>
Sat, 23 Sep 2017 16:23:27 +0000
(13:23 -0300)
Fixes fate-source.
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/opusenc_psy.c
patch
|
blob
|
history
diff --git
a/libavcodec/opusenc_psy.c
b/libavcodec/opusenc_psy.c
index
e6858f1
..
bb673be
100644
(file)
--- 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;