From d296cac7c37078549b348c1f52fa6f2cdddc8e7c Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Thu, 15 Dec 2022 12:41:12 +0200 Subject: [PATCH] [mtt] fix reference building for 16x1 --- src/intra.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intra.c b/src/intra.c index 4b6d056a..15beafbf 100644 --- a/src/intra.c +++ b/src/intra.c @@ -1495,8 +1495,7 @@ void uvg_intra_build_reference_inner( if (px.y % 4 != 0) { do { out_left_ref[i + 1] = left_border[(i + 0 - multi_ref_index) * left_stride]; - out_left_ref[i + 2] = left_border[(i + 1 - multi_ref_index) * left_stride]; - i += 2; + i += 1; } while (i < px_available_left); } else {