avcodec/qdm2: The smallest header seems to have 2 bytes so treat 1 as invalid
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 31 Oct 2019 14:22:53 +0000 (15:22 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Nov 2019 22:42:36 +0000 (23:42 +0100)
commit0e96cffff6e4bf4ac7e9a4022af81bbb228a9488
treecb71dca2d05c77543e1258abc5b90e642ffe5264
parent5222756b36fe2172903e1e165deb7c05cb34b025
avcodec/qdm2: The smallest header seems to have 2 bytes so treat 1 as invalid

Fixes: Timeout (217sec -> 2ms)
Fixes: 18488/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QDM2_fuzzer-5708293662310400

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