avcodec/magicyuv: Check len to be supported
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 May 2017 12:53:31 +0000 (14:53 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 May 2017 13:31:00 +0000 (15:31 +0200)
commit2162b862eba5aadb59c0cf7cc304c67f4a5fb946
treebab3e41e0f282bb15bb62d28c859db01928757d3
parent78bf446852a7e5e8aa52c7ca9889632e167b665f
avcodec/magicyuv: Check len to be supported

Fixes: shift exponent -1 is negative
Fixes: 1390/clusterfuzz-testcase-minimized-5452757630713856

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/magicyuv.c