From 4e203108bca022cb9110e4ef3c6058855164e6c3 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Mon, 19 Dec 2022 09:35:32 +0200 Subject: [PATCH] [mtt] Fix ref pixel generation for the second half of 32x2 chroma cus --- src/intra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intra.c b/src/intra.c index 15beafbf..0217ed7c 100644 --- a/src/intra.c +++ b/src/intra.c @@ -1492,7 +1492,7 @@ void uvg_intra_build_reference_inner( int i = multi_ref_index; // Offset by multi_ref_index // Do different loop for heights smaller than 4 (possible for some ISP splits) - if (px.y % 4 != 0) { + if (px.y % 4 != 0 || px_available_left < 4) { do { out_left_ref[i + 1] = left_border[(i + 0 - multi_ref_index) * left_stride]; i += 1;