From 3eefe77a702913b0d9480305c8a476daf80614f5 Mon Sep 17 00:00:00 2001 From: lzz8246 <lzz8246@whu.edu.cn> Date: Tue, 12 Nov 2019 22:33:50 +0800 Subject: [PATCH] Fix QPA with WCG_EXT. --- source/Lib/EncoderLib/EncCu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Lib/EncoderLib/EncCu.cpp b/source/Lib/EncoderLib/EncCu.cpp index db6c332759..c8faf81588 100644 --- a/source/Lib/EncoderLib/EncCu.cpp +++ b/source/Lib/EncoderLib/EncCu.cpp @@ -1066,6 +1066,9 @@ void EncCu::updateLambda (Slice* slice, const int dQP, if (updateRdCostLambda) { m_pcRdCost->setLambda (newLambda, slice->getSPS()->getBitDepths()); +#if WCG_EXT + m_pcRdCost->saveUnadjustedLambda(); +#endif } } #endif // SHARP_LUMA_DELTA_QP || ENABLE_QPA_SUB_CTU -- GitLab