From 951002f45112b200046609dbc3423c6162488a51 Mon Sep 17 00:00:00 2001
From: deluxan <santiago.de.luxan@hhi.fraunhofer.de>
Date: Fri, 8 Feb 2019 21:41:00 +0100
Subject: [PATCH] Deleted the TU retrieval from the DQP code in xCompressCU and
 the TU pointer being equal to nullptr check.

---
 source/Lib/EncoderLib/EncCu.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/source/Lib/EncoderLib/EncCu.cpp b/source/Lib/EncoderLib/EncCu.cpp
index 007eda32..9b5b8888 100644
--- a/source/Lib/EncoderLib/EncCu.cpp
+++ b/source/Lib/EncoderLib/EncCu.cpp
@@ -774,13 +774,8 @@ void EncCu::xCompressCU( CodingStructure *&tempCS, CodingStructure *&bestCS, Par
       const Position lumaRefPos(chromaCentral.x << getComponentScaleX(COMPONENT_Cb, tempCS->area.chromaFormat), chromaCentral.y << getComponentScaleY(COMPONENT_Cb, tempCS->area.chromaFormat));
       const CodingStructure* baseCS = bestCS->picture->cs;
       const CodingUnit* colLumaCu = baseCS->getCU(lumaRefPos, CHANNEL_TYPE_LUMA);
-#if JVET_M0102_INTRA_SUBPARTITIONS
-      const TransformUnit*  tu = colLumaCu ? baseCS->getTU(colLumaCu->ispMode ? colLumaCu->lumaPos() : lumaRefPos, CHANNEL_TYPE_LUMA) : nullptr;
-#else
-      const TransformUnit*  tu = baseCS->getTU(lumaRefPos, CHANNEL_TYPE_LUMA);
-#endif
 
-      if (colLumaCu && tu)
+      if (colLumaCu)
       {
         currTestMode.qp = colLumaCu->qp;
       }
-- 
GitLab