iavcodec/zmbv: Avoid reallocating cur/prev buffers if they are large enough
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Aug 2018 22:49:00 +0000 (00:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Sep 2018 22:01:32 +0000 (00:01 +0200)
commita73579c12d665531df9765c5b75aed5e12441d94
treed98bae38e40370cf62ecf2736a2f1a54d954f606
parent42f053494ca1188fe1b9000d4bba53375ee1dc20
iavcodec/zmbv: Avoid reallocating cur/prev buffers if they are large enough

Fixes: Timeout
Fixes: 9721/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-5650321660444672

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