From b53308f258d62f42eaf469fec0c89143849e2908 Mon Sep 17 00:00:00 2001 From: siivonek Date: Wed, 24 Aug 2022 15:11:01 +0300 Subject: [PATCH] [isp] Fix mistake in setting cbfs. Skip stting if ISP is not used. --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index ee0fc211..d81ca2e2 100644 --- a/src/search.c +++ b/src/search.c @@ -1130,7 +1130,7 @@ static double search_cu( lcu, tree_type,recon_luma,recon_chroma); // Set isp split cbfs here const int split_type = intra_search.pred_cu.intra.isp_mode; - const int split_num = split_type == ISP_MODE_NO_ISP ? 1 : uvg_get_isp_split_num(cu_width, cu_height, split_type); + const int split_num = split_type == ISP_MODE_NO_ISP ? 0 : uvg_get_isp_split_num(cu_width, cu_height, split_type); for (int i = 0; i < split_num; ++i) { cu_loc_t isp_loc; uvg_get_isp_split_loc(&isp_loc, x, y, cu_width, cu_height, i, split_type);