avcodec/vc1_pred: Fix invalid shift in scaleforsame()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 Jul 2019 21:27:19 +0000 (23:27 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 19:16:28 +0000 (21:16 +0200)
commit7f71ebded4be2d290b5d606de6256ceac0c18b8e
treefefff62e45e90d791da0b13398b7541b32846cf5
parent4739a62451059f0256473621b27f0cd0edd48349
avcodec/vc1_pred: Fix invalid shift in scaleforsame()

Fixes: left shift of negative value -1
Fixes: 15531/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5759556258365440

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 6dfda35dd29d2e2a86554d2c05d957a09ab79b0c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vc1_pred.c