avcodec/mpeg4videodec: Use 64 bit intermediates for sprite delta
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Oct 2017 19:41:54 +0000 (21:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 Oct 2017 21:58:40 +0000 (23:58 +0200)
commite38f280fece38e270a6462a02cc034f4116a7912
tree613ea5d46db9f05340ac60ea0799048a50cb5f8e
parentf280575a0fc96a7b288032357f664dfb552dfe12
avcodec/mpeg4videodec: Use 64 bit intermediates for sprite delta

Fixes: runtime error: signed integer overflow: -104713 * 65536 cannot be represented in type 'int'
Fixes: 3453/clusterfuzz-testcase-minimized-5555554657239040
Fixes: 3528/clusterfuzz-testcase-minimized-6283628420005888

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