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, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commitdcf02ee6c6917e9de00a148778be554c0eb7a679
tree60e2f9d0f6f5bc5a174417e011c119cb07965a7b
parent86b5a3d35dd2b9528eaf1c36397a31ae111c30c4
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