avcodec/hnm4video: Optimize postprocess_current_frame()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 2 Aug 2019 23:49:55 +0000 (01:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 12 Aug 2019 06:45:07 +0000 (08:45 +0200)
commitcd460f4da04c05d6ba93ccbbe294e948768f0937
tree98490dda6100f1ee8ad733ea7b4b83efbdf1fec3
parentaecf5cbd68021e2f2250a2d9aa53493ac73e7c1e
avcodec/hnm4video: Optimize postprocess_current_frame()

Improves: Timeout (220sec -> 108sec)
Improves: 15570/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HNM4_VIDEO_fuzzer-5085482213441536

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/hnm4video.c