Commit 8a015fd0 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Don't wait for reference pictures in intrabc.

Fixes hang from sample in issue #14.
parent 3c251d45
......@@ -518,8 +518,9 @@ static void mc(Dav1dTileContext *const t,
ptrdiff_t ref_stride = refp->p.stride[!!pl];
const pixel *ref;
dav1d_thread_picture_wait(refp, dy + bh4 * v_mul + !!my * 4,
PLANE_TYPE_Y + !!pl);
if (refp != &f->cur) // i.e. not for intrabc
dav1d_thread_picture_wait(refp, dy + bh4 * v_mul + !!my * 4,
PLANE_TYPE_Y + !!pl);
if (dx < 3 || dx + bw4 * h_mul + 4 > f->bw * h_mul ||
dy < 3 || dy + bh4 * v_mul + 4 > f->bh * v_mul)
{
......
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