avcodec/magicyuv: Check bits left in flags&1 branch
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 23 Jun 2018 21:37:10 +0000 (23:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Jun 2018 00:11:13 +0000 (02:11 +0200)
commit7719b8ccc790b6e1325af0afe2b65e2334a7173c
treecd478c2e00e2b5ecdb93f3303b85863774b02a8e
parent404dc6bab5cd1904daeb11affe3c67c02b8eec40
avcodec/magicyuv: Check bits left in flags&1 branch

Fixes: Timeout
Fixes: 8690/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MAGICYUV_fuzzer-6542020913922048

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/magicyuv.c