avcodec/mdec: Fix runtime error: left shift of negative value -127
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Apr 2017 00:27:16 +0000 (02:27 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 01:41:33 +0000 (03:41 +0200)
commit37f5bfaa2b0ad1918fe86e9edb13b0a23ac2838b
tree49adcc5aa4cd6939b9a3dbd47a4615f4dcb30252
parentd1b23e5c0c6cd15e216f22c314111f1095359b03
avcodec/mdec: Fix runtime error: left shift of negative value -127

Fixes undefined behavior
Fixes: 1275/clusterfuzz-testcase-minimized-6718162017976320

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 6ca82975b7a8eaf676a52738ec8e7e36732327cc)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mdec.c