changeset 12586:09f3b1d9349a Release_3.2

limit-tu: Fix bug in loading co-located CU's TU depth
author Aruna Matheswaran <aruna@multicorewareinc.com>
date Fri, 08 Nov 2019 15:30:50 +0530
parents b5c86a64bbbe
children b4b2ecac21f6
files source/encoder/analysis.cpp
diffstat 1 files changed, 2 insertions(+-), 2 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/analysis.cpp	Tue Oct 29 17:25:05 2019 +0530
+++ b/source/encoder/analysis.cpp	Fri Nov 08 15:30:50 2019 +0530
@@ -375,12 +375,12 @@ int32_t Analysis::loadTUDepth(CUGeom cuG
     CUData* neighbourCU;
     uint8_t count = 0;
     int32_t maxTUDepth = -1;
-    neighbourCU = m_slice->m_refFrameList[0][0]->m_encData->m_picCTU;
+    neighbourCU = &m_slice->m_refFrameList[0][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
     predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
     count++;
     if (m_slice->isInterB())
     {
-        neighbourCU = m_slice->m_refFrameList[1][0]->m_encData->m_picCTU;
+        neighbourCU = &m_slice->m_refFrameList[1][0]->m_encData->m_picCTU[parentCTU.m_cuAddr];
         predDepth += neighbourCU->m_refTuDepth[cuGeom.geomRecurId];
         count++;
     }