Index: branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncEntropy.cpp
===================================================================
--- branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncEntropy.cpp	(revision 1048)
+++ branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncEntropy.cpp	(revision 1049)
@@ -185,4 +185,15 @@
   else
   {
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+    Int ICEnableCandidate = pcCU->getSlice()->getICEnableCandidate(pcCU->getSlice()->getDepth());
+    Int ICEnableNum = pcCU->getSlice()->getICEnableNum(pcCU->getSlice()->getDepth());
+    ICEnableCandidate++;
+    if(pcCU->getICFlag(uiAbsPartIdx))
+    {
+      ICEnableNum++;
+    }
+    pcCU->getSlice()->setICEnableCandidate(pcCU->getSlice()->getDepth(), ICEnableCandidate);
+    pcCU->getSlice()->setICEnableNum(pcCU->getSlice()->getDepth(), ICEnableNum);
+#else
     g_aICEnableCANDIDATE[pcCU->getSlice()->getDepth()]++;
     if(pcCU->getICFlag(uiAbsPartIdx))
@@ -190,4 +201,5 @@
       g_aICEnableNUM[pcCU->getSlice()->getDepth()]++;
     }
+#endif
   }
   if( pcCU->isICFlagRequired( uiAbsPartIdx ) )
Index: branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncGOP.cpp
===================================================================
--- branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncGOP.cpp	(revision 1048)
+++ branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncGOP.cpp	(revision 1049)
@@ -160,5 +160,8 @@
 #endif
 #endif
-
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+  m_aICEnableCandidate           = pcTEncTop->getICEnableCandidate(); 
+  m_aICEnableNum           = pcTEncTop->getICEnableNum(); 
+#endif
 #if KWU_FIX_URQ
   m_pcRateCtrl           = pcTEncTop->getRateCtrl();
@@ -968,4 +971,8 @@
 #endif    
 #endif
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+    pcSlice->setICEnableCandidate( m_aICEnableCandidate );         
+    pcSlice->setICEnableNum( m_aICEnableNum );         
+#endif
     //  Slice info. refinement
 #if H_MV
Index: branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncGOP.h
===================================================================
--- branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncGOP.h	(revision 1048)
+++ branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncGOP.h	(revision 1049)
@@ -116,4 +116,8 @@
 #endif
 #endif
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+  Int *m_aICEnableCandidate; 
+  Int *m_aICEnableNum; 
+#endif
   //--Adaptive Loop filter
   TEncSampleAdaptiveOffset*  m_pcSAO;
Index: branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncTop.cpp
===================================================================
--- branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncTop.cpp	(revision 1048)
+++ branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncTop.cpp	(revision 1049)
@@ -84,4 +84,8 @@
   m_ivPicLists = NULL;
 #endif
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+  m_aICEnableCandidate = NULL;
+  m_aICEnableNum = NULL;
+#endif
 }
 
@@ -305,5 +309,14 @@
 
   xInitPPSforTiles();
-
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+  m_aICEnableCandidate = new Int[ 10 ];
+  m_aICEnableNum = new Int[ 10 ];
+
+  for(int i=0;i<10;i++)
+  {
+    m_aICEnableCandidate[i]=0;
+    m_aICEnableNum[i]=0;
+  }
+#endif
   // initialize processing unit classes
   m_cGOPEncoder.  init( this );
Index: branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncTop.h
===================================================================
--- branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncTop.h	(revision 1048)
+++ branches/HTM-12.0-dev1/source/Lib/TLibEncoder/TEncTop.h	(revision 1049)
@@ -79,4 +79,8 @@
 #if H_MV
   TComPicLists*           m_ivPicLists;                   ///< access to picture lists of other layers 
+#endif
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+  Int *m_aICEnableCandidate;
+  Int *m_aICEnableNum;
 #endif
   // encoder search
@@ -162,4 +166,8 @@
   TComPicLists* getIvPicLists() { return m_ivPicLists; }
 #endif
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+  Int *getICEnableCandidate() { return m_aICEnableCandidate; }
+  Int *getICEnableNum() { return m_aICEnableNum; }
+#endif
   Void      deletePicBuffer ();
 
@@ -221,4 +229,8 @@
   Void                    setIvPicLists         ( TComPicLists* picLists) { m_ivPicLists = picLists; }
 #endif
+#if MTK_LOW_LATENCY_IC_ENCODING_H0086_FIX
+  Void                    setICEnableCandidate         ( Int* ICEnableCandidate) { m_aICEnableCandidate = ICEnableCandidate; }
+  Void                    setICEnableNum         ( Int* ICEnableNum) { m_aICEnableNum = ICEnableNum; }
+#endif
   // -------------------------------------------------------------------------------------------------------------------
   // encoder function
