]> git.sesse.net Git - ffmpeg/commit
avcodec/zmbv: obtain frame later
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Feb 2019 16:25:14 +0000 (17:25 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 23 Feb 2019 21:48:35 +0000 (22:48 +0100)
commit177b40890c6de8c6896e0a1d4a631ea1ca89c044
tree718abb5af516fa8ee8d4f89540ed19a3bb720d9c
parent61523683c5a9bda9aaa7ae24764a3df0401a9877
avcodec/zmbv: obtain frame later

The frame is not needed that early so obtaining it later avoids
the costly operation in case other checks fail.

Fixes: Timeout (14sec -> 4sec)
Fixes: 13140/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-5738330308739072
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/zmbv.c