ref: 5f122cd5696dd10a0fc8ad117c3f68cd8edeabf8
parent: d05f62bd64e391c8944adf4b5aa861144ccba055
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Sun Sep 30 10:01:46 EDT 2018
Fix ss_ver assignment in thread_picture_wait()
--- a/src/picture.c
+++ b/src/picture.c
@@ -158,7 +158,7 @@
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);