From 6944437e98751d0bb3ee0bb00e546a2f29cda071 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Mon, 8 Nov 2021 09:43:53 +0200 Subject: [PATCH] Disable top-right CU copy to LCU when WPP is used, since it's not available --- src/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.c b/src/search.c index 78094358..ecb27495 100644 --- a/src/search.c +++ b/src/search.c @@ -962,8 +962,8 @@ static void init_lcu_t(const encoder_state_t * const state, const int x, const i memcpy(to_cu, from_cu, sizeof(*to_cu)); } - // Copy top-right CU. - if (y > 0 && x + LCU_WIDTH < frame->width) { + // Copy top-right CU, available only without WPP + if (y > 0 && x + LCU_WIDTH < frame->width && !state->encoder_control->cfg.wpp) { const cu_info_t *from_cu = kvz_cu_array_at_const(frame->cu_array, x + LCU_WIDTH, y - 1); cu_info_t *to_cu = LCU_GET_TOP_RIGHT_CU(lcu); memcpy(to_cu, from_cu, sizeof(*to_cu));