avcodec/msvideo1: Check for too small dimensions
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 1 Dec 2018 21:16:19 +0000 (22:16 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 14 Jan 2019 23:57:27 +0000 (00:57 +0100)
commit3c2207b10f0e29f849f098faa9f8426e086bfaad
tree83a16e4cdfbb77d923b487bc4aa7cd44cd9bc3ce
parent4ff4fd41791c4cb22dd87cb115bd6f7980f4a73a
avcodec/msvideo1: Check for too small dimensions

Such low resolution would result in empty output as a minimum of 4x4 is needed
We could also check for multiple of 4 dimensions but that is not needed

Fixes: Timeout
Fixes: 11191/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSVIDEO1_fuzzer-5739529588178944

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 953bd58861ad933e614510140b05a61e3d1375be)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/msvideo1.c