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>
Wed, 13 Mar 2019 23:24:44 +0000 (00:24 +0100)
commitff491b15444238db26aa7c842d94eb7c1e7bc82c
tree18ab79c7b86eb853ae5d523ebf9db4dba316f708
parent4e624c89fddd90907609a0cc907040204ad67468
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>
(cherry picked from commit 177b40890c6de8c6896e0a1d4a631ea1ca89c044)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/zmbv.c