diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-12 14:17:32 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-12 23:51:51 +0200 |
commit | 8d12f3de1401f10d93319ffdc46b01de9eba4285 (patch) | |
tree | 46654b27a29c47f6851baf4b9e2796e592059f50 /libavcodec/bonk.c | |
parent | f6448133e72e0e74ed5dec18e8a4134dfc79babe (diff) | |
download | ffmpeg-8d12f3de1401f10d93319ffdc46b01de9eba4285.tar.gz |
avcodec/bonk: Actually clip when using av_clip()
Also fixes a "statement with no effect [-Wunused-value]"
warning from GCC.
Reviewed-by: James Almer <jamrial@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/bonk.c')
-rw-r--r-- | libavcodec/bonk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bonk.c b/libavcodec/bonk.c index f3d797d588..409694f710 100644 --- a/libavcodec/bonk.c +++ b/libavcodec/bonk.c @@ -280,7 +280,7 @@ static int predictor_calc_error(int *k, int *state, int order, int error) } // don't drift too far, to avoid overflows - av_clip(x, -(SAMPLE_FACTOR << 16), SAMPLE_FACTOR << 16); + x = av_clip(x, -(SAMPLE_FACTOR << 16), SAMPLE_FACTOR << 16); state[0] = x; |