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>
Tue, 4 Dec 2018 23:50:13 +0000 (00:50 +0100)
commitd6f4341522c3eafb046c47b115d79ce684a899fc
tree1a9dc1c17a98d1e6ba3d8e638269b2f1c47c00f9
parent09ec182864d41c990bc18f620eabb77444aeff57
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>
libavcodec/wmv2dec.c