Commit 706757d2 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg12dec: Fix runtime error: left shift of negative value

Fixes: 608/clusterfuzz-testcase-603978286392934

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a9f3e4b1
...@@ -865,8 +865,8 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64]) ...@@ -865,8 +865,8 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
s->last_mv[i][0][1]); s->last_mv[i][0][1]);
/* full_pel: only for MPEG-1 */ /* full_pel: only for MPEG-1 */
if (s->full_pel[i]) { if (s->full_pel[i]) {
s->mv[i][0][0] <<= 1; s->mv[i][0][0] *= 2;
s->mv[i][0][1] <<= 1; s->mv[i][0][1] *= 2;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment