avcodec/mpeg4videodec: Clear mcsel before decoding an image
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Aug 2017 11:32:54 +0000 (13:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Aug 2017 23:07:21 +0000 (01:07 +0200)
commit96cf249751bb764199aa9a9c50bbd7f4724889cb
tree701d8eb2abde2f804f38d2120f7afa99d7c90166
parent30a2c1a1b83f1931fe728c28fb03b203b1aebec8
avcodec/mpeg4videodec: Clear mcsel before decoding an image

Fixes: runtime error: signed integer overflow: 2146467840 + 1032192 cannot be represented in type 'int'
Fixes: 2826/clusterfuzz-testcase-minimized-5901511613743104

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