X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264_mc_template.c;h=e4333a733cd3bac7176fd6976b9316383d9ccfe4;hb=a0ec4aebabe1f816cc69e20309981907ba5d1395;hp=eaead35bb2e42cec24abfdd2c3c043c2e162d6af;hpb=14a28298cb8815de1138181ac7f8992f927cb12a;p=ffmpeg diff --git a/libavcodec/h264_mc_template.c b/libavcodec/h264_mc_template.c index eaead35bb2e..e4333a733cd 100644 --- a/libavcodec/h264_mc_template.c +++ b/libavcodec/h264_mc_template.c @@ -158,6 +158,7 @@ static void MCFUNC(hl_motion)(const H264Context *h, H264SliceContext *sl, } } - prefetch_motion(h, sl, 1, PIXEL_SHIFT, CHROMA_IDC); + if (USES_LIST(mb_type, 1)) + prefetch_motion(h, sl, 1, PIXEL_SHIFT, CHROMA_IDC); }