Commit 5f122cd5 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Fix ss_ver assignment in thread_picture_wait()

parent d05f62bd
Pipeline #772 passed with stage
in 1 minute and 7 seconds
......@@ -158,7 +158,7 @@ void dav1d_thread_picture_wait(const Dav1dThreadPicture *const p,
return;
// convert to luma units; include plane delay from loopfilters; clip
const int ss_ver = p->p.p.layout != DAV1D_PIXEL_LAYOUT_I444;
const int ss_ver = p->p.p.layout == DAV1D_PIXEL_LAYOUT_I420;
y_unclipped *= 1 << (plane_type & ss_ver); // we rely here on PLANE_TYPE_UV being 1
y_unclipped += (plane_type != PLANE_TYPE_BLOCK) * 8; // delay imposed by loopfilter
const int y = iclip(y_unclipped, 1, p->p.p.h);
......
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