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:20 +0000 (01:07 +0200)
commite154826a2f020f966a677cfbff4a97d7a0a94d5f
treec160b9590a0fbaf2608d3b00ae3da18cf22ac184
parentf91733e1415b232cadffec1078441934713a7bee
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