Index: branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
===================================================================
--- branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp	(revision 1155)
+++ branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp	(revision 1156)
@@ -3012,13 +3012,14 @@
 
     NumOutputLayersInOutputLayerSet[i] = 0;
-    for (j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++)
+
+    for( j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++ )
     {
       NumOutputLayersInOutputLayerSet[i] += vps->getOutputLayerFlag(i, j);
-      if (vps->getOutputLayerFlag(i, j))
+      if( vps->getOutputLayerFlag(i, j) )
       {
         OlsHighestOutputLayerId[i] = vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, j);
       }
     }
-    if (NumOutputLayersInOutputLayerSet[i] == 1 && vps->getNumDirectRefLayers(OlsHighestOutputLayerId[i]) > 0)
+    if( NumOutputLayersInOutputLayerSet[i] == 1 && vps->getNumDirectRefLayers(OlsHighestOutputLayerId[i]) > 0 )
     {
       READ_FLAG(uiCode, "alt_output_layer_flag[i]");
@@ -3032,7 +3033,6 @@
     }
 #endif
-#if Q0165_OUTPUT_LAYER_SET
-    assert( NumOutputLayersInOutputLayerSet[i]>0 );
-#endif
+
+    assert( NumOutputLayersInOutputLayerSet[i] > 0 );
   }
 
