mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/rv40: Fix runtime error: left shift of negative value
Fixes: 630/clusterfuzz-testcase-6608718928019456 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f4777d1b89
commit
956472a323
2 changed files with 2 additions and 2 deletions
|
|
@ -449,7 +449,7 @@ static av_always_inline void rv40_weak_loop_filter(uint8_t *src,
|
|||
if (u > 3 - (filter_p1 && filter_q1))
|
||||
continue;
|
||||
|
||||
t <<= 2;
|
||||
t *= 1 << 2;
|
||||
if (filter_p1 && filter_q1)
|
||||
t += src[-2*step] - src[1*step];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue