avcodec/wmv2dec: Skip I frame if its smaller than 1/8 of the minimal size
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 27 Nov 2018 22:37:03 +0000 (23:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 21 Jan 2019 06:53:26 +0000 (07:53 +0100)
commit1a5db666ace66a4ebc42557753d09426df561923
treeed1dbb111ddac54d8c45b46c7324eafc8181fd9a
parenteee0cf487aade926af27d7ffb079201ef5e8287e
avcodec/wmv2dec: Skip I 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: 11168/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV2_fuzzer-5733782032744448

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