From fdfda36793b6027db5f73c70f47d0d44819148dc Mon Sep 17 00:00:00 2001 From: Karsten Suehring <karsten.suehring@hhi.fraunhofer.de> Date: Mon, 8 Aug 2022 12:35:42 +0200 Subject: [PATCH] fix #1566: run ISP related check only when in ISP mode --- source/Lib/EncoderLib/EncCu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Lib/EncoderLib/EncCu.cpp b/source/Lib/EncoderLib/EncCu.cpp index c5b02c17c..0b14281bd 100644 --- a/source/Lib/EncoderLib/EncCu.cpp +++ b/source/Lib/EncoderLib/EncCu.cpp @@ -1845,7 +1845,7 @@ bool EncCu::xCheckRDCostIntra(CodingStructure *&tempCS, CodingStructure *&bestCS { double bestCostDct2NoIsp = m_modeCtrl->getMtsFirstPassNoIspCost(); double bestIspCost = m_modeCtrl->getIspCost(); - CHECKD( bestCostDct2NoIsp <= bestIspCost, "wrong cost!" ); + CHECKD( cu.ispMode && bestCostDct2NoIsp <= bestIspCost, "wrong cost!" ); double threshold = 1.4; double lfnstThreshold = 1.01 * threshold; -- GitLab