avcodec/mpeg4videodec: Fix overflow in virtual_ref computation
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Jun 2017 11:52:06 +0000 (13:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 21 Jun 2017 00:25:23 +0000 (02:25 +0200)
commit5443c4bdf4828ac5b7b19cf54feb496c2da40079
treed8df293b85f1cfef950faa1328d9a41fdc93aebf
parente95fcfe8fb28fdfdaecec465c60aad79bc340a3d
avcodec/mpeg4videodec: Fix overflow in virtual_ref computation

Fixes: runtime error: signed integer overflow: 262144 * -16120 cannot be represented in type 'int'
Fixes: 2292/clusterfuzz-testcase-minimized-6156080415506432

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4videodec.c