avcodec/msmpeg4dec: Skip frame if its smaller than 1/8 of the minimal size
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 29 Nov 2018 01:32:10 +0000 (02:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Mar 2019 09:38:51 +0000 (10:38 +0100)
commitf06485063df089145ad91f6e53d17587bcaf0fb6
tree317c931a933623506eabbc96c48187060ea1ebf2
parent506b9c88c739097a62622b7a28cf4577d36e2107
avcodec/msmpeg4dec: Skip frame if its smaller than 1/8 of the minimal size

Frames that small are not valid and of limited use for error concealment, while
being very computationally intensive to process.

Fixes: Timeout
Fixes: 11318/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSMPEG4V1_fuzzer-5710884555456512

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