From e0e96068ccc41cd634093d7cc29a854df6e571a2 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Mon, 5 Sep 2022 12:04:21 +0300 Subject: [PATCH] [lfnst] lfnst is not allowed for transform split --- src/encode_coding_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encode_coding_tree.c b/src/encode_coding_tree.c index 0fe488f9..be66d8f3 100644 --- a/src/encode_coding_tree.c +++ b/src/encode_coding_tree.c @@ -114,7 +114,7 @@ bool uvg_is_lfnst_allowed( const color_t color, const lcu_t* lcu) { - if (state->encoder_control->cfg.lfnst && pred_cu->type == CU_INTRA) { + if (state->encoder_control->cfg.lfnst && pred_cu->type == CU_INTRA && pred_cu->depth == pred_cu->tr_depth) { const int isp_mode = pred_cu->intra.isp_mode; const int depth = pred_cu->depth; const int chroma_width = width >> 1;