avcodec/hevc_refs: Optimize 16bit generate_missing_ref()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 6 Aug 2019 16:05:02 +0000 (18:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 11 Aug 2019 17:13:21 +0000 (19:13 +0200)
commitda8936969fe695a042282d5686e12227745d299a
treecaa56a066527b6516c2ba5083c5b12c98f7afb3e
parent950a21e83c742714d6afbecd3e3fd1887e80fa40
avcodec/hevc_refs: Optimize 16bit generate_missing_ref()

Fixes: Timeout (86sec -> 8sec) [these numbers assume also "[FFmpeg-devel] [PATCH 2/5] [RFC] avcodec/hevcdec: Check for overread in hls_decode_entry()"]
Fixes: 15702/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5657764929470464

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