From 08942a53944859150119ecdcbe3207d7e74705bd Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Tue, 6 Sep 2022 08:49:22 +0300 Subject: [PATCH] [tr-skip] fix transform skip flag writing --- 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 be66d8f3..96feb36c 100644 --- a/src/encode_coding_tree.c +++ b/src/encode_coding_tree.c @@ -558,7 +558,7 @@ static void encode_transform_unit( // CoeffNxN // Residual Coding - if(state->encoder_control->cfg.trskip_enable && width <= (1 << state->encoder_control->cfg.trskip_max_size && !(cur_pu->type == CU_INTRA && cur_pu->intra.isp_mode != ISP_MODE_NO_ISP))) { + if(state->encoder_control->cfg.trskip_enable && width <= (1 << state->encoder_control->cfg.trskip_max_size) && !(cur_pu->type == CU_INTRA && cur_pu->intra.isp_mode != ISP_MODE_NO_ISP)) { cabac->cur_ctx = &cabac->ctx.transform_skip_model_luma; CABAC_BIN(cabac, cur_pu->tr_idx == MTS_SKIP, "transform_skip_flag"); DBG_YUVIEW_VALUE(state->frame->poc, DBG_YUVIEW_TR_SKIP, x, y, width, width, (cur_pu->tr_idx == MTS_SKIP) ? 1 : 0);