[x265] [PATCH] log: fix crash caused by logging after CU analysis
kavitha at multicorewareinc.com
kavitha at multicorewareinc.com
Tue Dec 10 07:32:16 CET 2013
# HG changeset patch
# User Kavitha Sampath <kavitha at multicorewareinc.com>
# Date 1386657111 -19800
# Tue Dec 10 12:01:51 2013 +0530
# Node ID ef26367cd10c278875fff8683b91800bc3030ef9
# Parent a88c5723d2661977aae0f94fc1bd88a5cd513c58
log: fix crash caused by logging after CU analysis
diff -r a88c5723d266 -r ef26367cd10c source/Lib/TLibEncoder/TEncCu.cpp
--- a/source/Lib/TLibEncoder/TEncCu.cpp Mon Dec 09 13:01:26 2013 -0600
+++ b/source/Lib/TLibEncoder/TEncCu.cpp Tue Dec 10 12:01:51 2013 +0530
@@ -361,25 +361,25 @@
{
xCompressIntraCU(m_bestCU[0], m_tempCU[0], 0);
int i = 0, part;
- part = m_bestCU[0]->getDepth(i);
+ part = cu->getDepth(i);
do
{
m_log->totalCu++;
- int next = m_bestCU[0]->getTotalNumPart() >> (part * 2);
- if (part == g_maxCUDepth - 1 && m_bestCU[0]->getPartitionSize(i) != SIZE_2Nx2N)
+ int next = cu->getTotalNumPart() >> (part * 2);
+ if (part == g_maxCUDepth - 1 && cu->getPartitionSize(i) != SIZE_2Nx2N)
{
m_log->cntIntraNxN++;
}
else
{
m_log->cntIntra[part]++;
- if (m_bestCU[0]->getLumaIntraDir()[i] > 1)
+ if (cu->getLumaIntraDir()[i] > 1)
m_log->cuIntraDistribution[part][ANGULAR_MODE_ID]++;
else
- m_log->cuIntraDistribution[part][m_bestCU[0]->getLumaIntraDir()[i]]++;
+ m_log->cuIntraDistribution[part][cu->getLumaIntraDir()[i]]++;
}
i += next;
- part = m_bestCU[0]->getDepth(i);
+ part = cu->getDepth(i);
}
while (part < g_maxCUDepth);
}
@@ -400,7 +400,7 @@
do
{
m_log->cntTotalCu[part]++;
- int next = m_bestCU[0]->getTotalNumPart() >> (part * 2);
+ int next = cu->getTotalNumPart() >> (part * 2);
if (cu->isSkipped(i))
{
m_log->cntSkipCu[part]++;
More information about the x265-devel
mailing list