libavcodec/mpeg4videodec: Convert sprite_offset to 64bit
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 3 May 2017 03:21:51 +0000 (05:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 May 2017 17:49:45 +0000 (19:49 +0200)
commitc1c3a14073b33f790075f2884ea5c64451a6c876
tree530589576cbd085681c381223e05a6893d543230
parenta0296fc056f0d86943c697c505a181744b07dd45
libavcodec/mpeg4videodec: Convert sprite_offset to 64bit

This avoids intermediates from overflowing (the final values are checked)
Fixes: runtime error: signed integer overflow: -167712 + -2147352576 cannot be represented in type 'int'

Fixes: 1298/clusterfuzz-testcase-minimized-5955580877340672

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