avcodec/h264_mc_template: Only prefetch motion if the list is used.
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Jun 2018 16:25:14 +0000 (18:25 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commit5f771a74b23f83edbcc6f0cae79e458ac7931e1e
tree193d588fbcf4f008f3daf58f1b8574dedaa7b9bc
parenta16a4fefb6d1dee75d329012c0e3ecaa7769ebd6
avcodec/h264_mc_template: Only prefetch motion if the list is used.

Fixes: index 59 out of bounds for type 'H264Ref [48]'
Fixes: 8232/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5703295145345024

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8b55591757244d8244a2be369c2b54c9ae79b02a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_mc_template.c