From d15fb473a2c80e6ec9f42b4f314d5e95c4ae7cf1 Mon Sep 17 00:00:00 2001 From: siivonek Date: Wed, 1 Jun 2022 14:26:25 +0300 Subject: [PATCH] [lfnst] Fix error in mts skip check. Skip value was derived from tr_skip instead of correct tr_idx. --- src/transform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transform.c b/src/transform.c index 37d42b23..cb3b85ba 100644 --- a/src/transform.c +++ b/src/transform.c @@ -285,7 +285,7 @@ void kvz_fwd_lfnst(const cu_info_t* const cur_cu, { const uint16_t lfnst_index = lfnst_idx; int8_t intra_mode = (color == COLOR_Y) ? cur_cu->intra.mode : cur_cu->intra.mode_chroma; - bool mts_skip = cur_cu->tr_skip; + bool mts_skip = cur_cu->tr_idx == MTS_SKIP; const int depth = cur_cu->depth; bool is_separate_tree = depth == 4; // TODO: proper dual tree check when that structure is implemented bool is_cclm_mode = (intra_mode >= 81 && intra_mode <= 83); // CCLM modes are in [81, 83] @@ -419,7 +419,7 @@ void kvz_inv_lfnst(const cu_info_t *cur_cu, const int max_log2_dyn_range = 15; const uint32_t lfnst_index = lfnst_idx; int8_t intra_mode = (color == COLOR_Y) ? cur_cu->intra.mode : cur_cu->intra.mode_chroma; - bool mts_skip = cur_cu->tr_skip; + bool mts_skip = cur_cu->tr_idx == MTS_SKIP; const int depth = cur_cu->depth; bool is_separate_tree = depth == 4; // TODO: proper dual tree check when that structure is implemented bool is_cclm_mode = (intra_mode >= 81 && intra_mode <= 83); // CCLM modes are in [81, 83]