From 510798cb3dfc11e16c1b8d1e17c770888e948eb8 Mon Sep 17 00:00:00 2001 From: siivonek Date: Tue, 23 Aug 2022 13:20:57 +0300 Subject: [PATCH] [isp] Fix mistake in isp cabac write. Intra luma mpm flag bit was checking isp when it did not need to. --- src/encode_coding_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encode_coding_tree.c b/src/encode_coding_tree.c index 7e8d76e0..83ee8585 100644 --- a/src/encode_coding_tree.c +++ b/src/encode_coding_tree.c @@ -1143,8 +1143,8 @@ void uvg_encode_intra_luma_coding_unit(const encoder_state_t * const state, } // Is the mode in the MPM array or not flag = (mpm_preds == -1) ? 0 : 1; - if (!(cur_pu->intra.multi_ref_idx || (isp_mode))) { - CABAC_FBITS_UPDATE(cabac, &(cabac->ctx.intra_luma_mpm_flag_model), flag, bits, "prev_intra_luma_pred_flag"); + if (cur_pu->intra.multi_ref_idx == 0) { + CABAC_FBITS_UPDATE(cabac, &(cabac->ctx.intra_luma_mpm_flag_model), flag, bits, "intra_luma_mpm_flag"); } // Signal index of the prediction mode in the prediction list, if it is there