Index: branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
===================================================================
--- branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp	(revision 1151)
+++ branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp	(revision 1152)
@@ -2823,5 +2823,5 @@
   }
 #endif
-#if VPS_TSLAYERS
+
   READ_FLAG( uiCode, "vps_sub_layers_max_minus1_present_flag"); vps->setMaxTSLayersPresentFlag(uiCode ? true : false);
 
@@ -2840,13 +2840,13 @@
     }
   }
-#endif
+
   READ_FLAG( uiCode, "max_tid_ref_present_flag"); vps->setMaxTidRefPresentFlag(uiCode ? true : false);
-  if (vps->getMaxTidRefPresentFlag())
-  {
-    for(i = 0; i < vps->getMaxLayers() - 1; i++)
-    {
-      for( j = i+1; j < vps->getMaxLayers(); j++)
-      {
-        if(vps->getDirectDependencyFlag(j, i))
+  if( vps->getMaxTidRefPresentFlag() )
+  {
+    for( i = 0; i < vps->getMaxLayers() - 1; i++ )
+    {
+      for( j = i+1; j < vps->getMaxLayers(); j++ )
+      {
+        if( vps->getDirectDependencyFlag(j, i) )
         {
           READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i][j]" ); vps->setMaxTidIlRefPicsPlus1(i, j, uiCode);          
