From 8e4b864e6bacd8420118209bdd82575c3796120b Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Thu, 15 Dec 2022 10:07:47 +0200 Subject: [PATCH] [deblock] Fix incorrect direction for transform split of tall blocks at the top CTU row also for chroma --- src/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.c b/src/search.c index 747182d7..8ebc9280 100644 --- a/src/search.c +++ b/src/search.c @@ -1094,7 +1094,7 @@ static void mark_deblocking(const cu_loc_t* const cu_loc, const cu_loc_t* const } else if (cu_loc->height == 64) { for (int x = chroma_loc->local_x; x < chroma_loc->local_x + chroma_loc->width; x += SCU_WIDTH) { - LCU_GET_CU_AT_PX(lcu, x, TR_MAX_WIDTH)->chroma_deblocking |= EDGE_VER; + LCU_GET_CU_AT_PX(lcu, x, TR_MAX_WIDTH)->chroma_deblocking |= EDGE_HOR; } } } @@ -1123,7 +1123,7 @@ static void mark_deblocking(const cu_loc_t* const cu_loc, const cu_loc_t* const } else if (chroma_loc->height == 64) { for (int x = x_local; x < x_local + chroma_loc->chroma_width; x += SCU_WIDTH) { - LCU_GET_CU_AT_PX(lcu, x, TR_MAX_WIDTH / 2)->chroma_deblocking |= EDGE_VER; + LCU_GET_CU_AT_PX(lcu, x, TR_MAX_WIDTH / 2)->chroma_deblocking |= EDGE_HOR; } } }