Index: /branches/HTM-10.0rc1-dev0/source/Lib/TLibCommon/TComRom.cpp
===================================================================
--- /branches/HTM-10.0rc1-dev0/source/Lib/TLibCommon/TComRom.cpp	(revision 846)
+++ /branches/HTM-10.0rc1-dev0/source/Lib/TLibCommon/TComRom.cpp	(revision 847)
@@ -579,15 +579,15 @@
 
   Bool stopFlag = false; 
-  if ( g_stopAtPos && poc == 0 && layerId == 4 )
+  if ( g_stopAtPos && poc == 0 && layerId == 1 )
   {
     Bool stopAtCU = true; 
     if ( stopAtCU )        // Stop at CU with specific size
     {    
-      stopFlag = ( cuPelX  == 16 ) && ( cuPelY  == 112 ) && ( cuWidth == 16 ) && ( cuHeight == 16); 
+      stopFlag = ( cuPelX  == 888 ) && ( cuPelY  == 248 ) && ( cuWidth == 8 ) && ( cuHeight == 8); 
     }
     else
     {                     // Stop at specific position 
-      Int xPos = 18; 
-      Int yPos = 112; 
+      Int xPos = 888; 
+      Int yPos = 248; 
 
       Int cuPelXEnd = cuPelX + cuWidth  - 1; 
Index: /branches/HTM-10.0rc1-dev0/source/Lib/TLibDecoder/TDecCu.cpp
===================================================================
--- /branches/HTM-10.0rc1-dev0/source/Lib/TLibDecoder/TDecCu.cpp	(revision 846)
+++ /branches/HTM-10.0rc1-dev0/source/Lib/TLibDecoder/TDecCu.cpp	(revision 847)
@@ -927,6 +927,12 @@
   }
 #endif
-  
+
+#if UPDATE_HM13
+  Bool useDltFlag = (isDimMode( uiLumaPredMode ) || uiLumaPredMode == HOR_IDX || uiLumaPredMode == VER_IDX || uiLumaPredMode == DC_IDX) && pcCU->getSlice()->getIsDepth() && pcCU->getSlice()->getPPS()->getDLT()->getUseDLTFlag(pcCU->getSlice()->getLayerIdInVps());
+
+  if ( pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA, uiTrDepth ) || useDltFlag )
+#else
   if ( pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA, uiTrDepth ) )
+#endif
   {
   //===== inverse transform =====
@@ -948,5 +954,9 @@
     {
 #if H_3D
+#if UPDATE_HM13
+      if ( useDltFlag )
+#else
       if( (isDimMode( uiLumaPredMode ) || uiLumaPredMode == HOR_IDX || uiLumaPredMode == VER_IDX || uiLumaPredMode == DC_IDX) && pcCU->getSlice()->getIsDepth() && pcCU->getSlice()->getPPS()->getDLT()->getUseDLTFlag(pcCU->getSlice()->getLayerIdInVps()) )
+#endif
       {
         pReco    [ uiX ] = pcCU->getSlice()->getPPS()->getDLT()->idx2DepthValue( pcCU->getSlice()->getLayerIdInVps(), Clip3( 0, pcCU->getSlice()->getPPS()->getDLT()->getNumDepthValues( pcCU->getSlice()->getLayerIdInVps() ) - 1, pcCU->getSlice()->getPPS()->getDLT()->depthValue2idx( pcCU->getSlice()->getLayerIdInVps(), pPred[ uiX ] ) + pResi[ uiX ] ) );
Index: /branches/HTM-10.0rc1-dev0/source/Lib/TLibEncoder/TEncSearch.cpp
===================================================================
--- /branches/HTM-10.0rc1-dev0/source/Lib/TLibEncoder/TEncSearch.cpp	(revision 846)
+++ /branches/HTM-10.0rc1-dev0/source/Lib/TLibEncoder/TEncSearch.cpp	(revision 847)
@@ -5803,6 +5803,5 @@
       dCostBest        = dCost;
       qpBest           = qp;
-        m_pcRDGoOnSbacCoder->store( m_pppcRDSbacCoder[ pcCU->getDepth( 0 ) ][ CI_TEMP_BEST ] );
-      }
+      m_pcRDGoOnSbacCoder->store( m_pppcRDSbacCoder[ pcCU->getDepth( 0 ) ][ CI_TEMP_BEST ] );
     }
 #if H_3D_VSO // M21
@@ -5814,5 +5813,5 @@
     }
 #endif
-  
+  }
   assert ( dCostBest != MAX_DOUBLE );
   
Index: /branches/HTM-10.0rc1-dev0/source/Lib/TLibEncoder/TEncSlice.cpp
===================================================================
--- /branches/HTM-10.0rc1-dev0/source/Lib/TLibEncoder/TEncSlice.cpp	(revision 846)
+++ /branches/HTM-10.0rc1-dev0/source/Lib/TLibEncoder/TEncSlice.cpp	(revision 847)
@@ -1457,8 +1457,8 @@
         m_pcBufferSbacCoders[uiTileCol].loadContexts( &pcSbacCoders[uiSubStrm] );
       }
-    }
 #if H_3D_QTLPC
     rpcPic->setReduceBitsFlag(false);
 #endif
+  }
   if( depSliceSegmentsEnabled )
   {
