[x265] [PATCH] TComDataCU: fix gcc warning

sumalatha at multicorewareinc.com sumalatha at multicorewareinc.com
Mon Dec 16 09:47:21 CET 2013


# HG changeset patch
# User Sumalatha Polureddy
# Date 1387183634 -19800
# Node ID 16434925a1cf7e0e79fdc85b269fede0dd235942
# Parent  a5b5595504bebedc692d295b220a0814f0d6cc11
TComDataCU: fix gcc warning

diff -r a5b5595504be -r 16434925a1cf source/Lib/TLibCommon/TComDataCU.cpp
--- a/source/Lib/TLibCommon/TComDataCU.cpp	Mon Dec 16 14:02:14 2013 +0530
+++ b/source/Lib/TLibCommon/TComDataCU.cpp	Mon Dec 16 14:17:14 2013 +0530
@@ -499,11 +499,9 @@
     memcpy(m_height, rpcCU->getHeight() + m_absIdxInLCU, iSizeInUchar);
 
     uint32_t tmp = (g_maxCUWidth * g_maxCUHeight) >> (depth << 1);
-    uint32_t tmp2 = m_absIdxInLCU * m_pic->getMinCUWidth() * m_pic->getMinCUHeight();
     memset(m_trCoeffY, 0, sizeof(TCoeff) * tmp);
 
     tmp  = ((g_maxCUWidth >> m_hChromaShift) * (g_maxCUHeight >> m_hChromaShift)) >> (depth << 1);
-    tmp2 = m_absIdxInLCU * (m_pic->getMinCUWidth() >> m_hChromaShift) * (m_pic->getMinCUHeight() >> m_vChromaShift);
     memset(m_trCoeffCb, 0, sizeof(TCoeff) * tmp);
     memset(m_trCoeffCr, 0, sizeof(TCoeff) * tmp);
 }


More information about the x265-devel mailing list