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:
Michael Niedermayer 2017-02-21 03:05:32 +01:00
parent f4777d1b89
commit 956472a323
2 changed files with 2 additions and 2 deletions

View file

@ -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];