From 24f10ebb22dcc3d793e297da7fa264c6374babdb Mon Sep 17 00:00:00 2001 From: Karsten Suehring Date: Fri, 19 Mar 2021 16:39:24 +0100 Subject: [PATCH] Fix segment coding mismatch for HDR (delta qp) m_bEncodeDQP was not reset at the beginning of a new CTU. This could lead to wrong cost calculation in following CTUs. Especially it caused a mismatch in segment based coding. --- source/Lib/TLibEncoder/TEncCu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Lib/TLibEncoder/TEncCu.cpp b/source/Lib/TLibEncoder/TEncCu.cpp index 2fcad5d4..54acc6a6 100644 --- a/source/Lib/TLibEncoder/TEncCu.cpp +++ b/source/Lib/TLibEncoder/TEncCu.cpp @@ -233,6 +233,7 @@ Void TEncCu::compressCtu( TComDataCU* pCtu ) // initialize CU data m_ppcBestCU[0]->initCtu( pCtu->getPic(), pCtu->getCtuRsAddr() ); m_ppcTempCU[0]->initCtu( pCtu->getPic(), pCtu->getCtuRsAddr() ); + m_bEncodeDQP = false; // analysis of CU DEBUG_STRING_NEW(sDebug) -- GitLab