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>
Thu, 27 Apr 2017 02:25:31 +0000 (04:25 +0200)
commit6ca82975b7a8eaf676a52738ec8e7e36732327cc
treed18767a836061492158191275485f40352bcfa0c
parent966cbfbc83db34f50616fe582d1a53f81d292282
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>
libavcodec/mdec.c