avcodec/wmv2dec: skip frames that have only skiped MBs
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Aug 2018 13:57:54 +0000 (15:57 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Sep 2018 22:01:32 +0000 (00:01 +0200)
commit0c88a5d3eb8cd6891a52eb285b37b1458f0b4b16
treeef7dcf8179e2aa559c89d583ded05aa9b5c13399
parent93a203662f6ff1bb9fd2e966bf7df27e9bdb1916
avcodec/wmv2dec: skip frames that have only skiped MBs

This requires us to pre-parse the skip data, as we want to
detect this before allocating all the arrays

Fixes: Timeout
Fixes: 9708/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV2_fuzzer-5729709861109760

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