ref: d05f62bd64e391c8944adf4b5aa861144ccba055
parent: 92ad37cfbef69aef083f84d4d8475e970d6ac1d9
author: Ronald S. Bultje <[email protected]>
date: Sun Sep 30 07:45:15 EDT 2018
Fix for progress at edges of image
--- a/src/picture.c
+++ b/src/picture.c
@@ -161,7 +161,7 @@
const int ss_ver = p->p.p.layout != DAV1D_PIXEL_LAYOUT_I444;
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, 0, p->p.p.h - 1);
+ const int y = iclip(y_unclipped, 1, p->p.p.h);
atomic_uint *const progress = &p->progress[plane_type != PLANE_TYPE_BLOCK];
if (atomic_load_explicit(progress, memory_order_acquire) >= y)