avcodec/mpeg4videodec: Fix undefined shift in get_amv()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 14 Sep 2018 22:20:38 +0000 (00:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:41 +0000 (01:44 +0200)
commit58cb3ad576cb59b914b076246b116c59e084a116
treef4d89392a153add07331f8263fd40cc8f5be5206
parent648b904662c2fcb0721740f150fa9145c7cf314f
avcodec/mpeg4videodec: Fix undefined shift in get_amv()

Fixes: runtime error: shift exponent -1 is negative
Fixes: 9938/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5653783529914368

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 c88afa44c4823aba7b6f4a1b01fd6a4169643c57)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4videodec.c