mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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>
This commit is contained in:
parent
f6448133e7
commit
8d12f3de14
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user