Commit c8ea5766 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264_mc_template: prefetch list1 only if it is used in the MB

Fixes ubsan warning
Fixes Mozilla bug 1230276
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ef8f6464
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment