diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-21 03:05:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-21 15:31:06 +0100 |
commit | 956472a3236cc8eaeba5147c55b51bde6005c898 (patch) | |
tree | 4a1994ac8c5413df402e7b5feeebf65b00391501 /libavcodec/rv40dsp.c | |
parent | f4777d1b89c65166394a459399704fc034a782d6 (diff) | |
download | ffmpeg-956472a3236cc8eaeba5147c55b51bde6005c898.tar.gz |
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>
Diffstat (limited to 'libavcodec/rv40dsp.c')
-rw-r--r-- | libavcodec/rv40dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv40dsp.c b/libavcodec/rv40dsp.c index 19b0e93696..95ba0a9259 100644 --- a/libavcodec/rv40dsp.c +++ b/libavcodec/rv40dsp.c @@ -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]; |