avcodec/wcmv: check remaining space vs. blocks
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 1 Jun 2019 22:08:31 +0000 (00:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 21 Jun 2019 16:28:00 +0000 (18:28 +0200)
commitdd8720045cdc46536c7a13f091aaf4ddea93e048
treeb245220e49bd6554a57d2bf34f1071bc44818cf2
parentd5a6b390ced64cfd33764930f8b1d3c6437a43b6
avcodec/wcmv: check remaining space vs. blocks

Fixes: Timeout (18sec  -> 7sec)
Fixes: 14835/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WCMV_fuzzer-5646714897170432

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wcmv.c