mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
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/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 706757d26dd5e606c1745a4bb53fe45f6d6493cf) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7272eb87df
commit
367222af32
@ -920,8 +920,8 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
|
||||
s->last_mv[i][0][1]);
|
||||
/* full_pel: only for MPEG-1 */
|
||||
if (s->full_pel[i]) {
|
||||
s->mv[i][0][0] <<= 1;
|
||||
s->mv[i][0][1] <<= 1;
|
||||
s->mv[i][0][0] *= 2;
|
||||
s->mv[i][0][1] *= 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user