Index: /branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
===================================================================
--- /branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp	(revision 780)
+++ /branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp	(revision 781)
@@ -1293,7 +1293,7 @@
   {
     READ_UVLC(uiCode, "num_add_layer_sets"); vps->setNumAddLayerSets(uiCode);
-    for (Int i = 0; i < vps->getNumAddLayerSets(); i++)
-    {
-      for (Int j = 1; j < vps->getNumIndependentLayers(); j++)
+    for (i = 0; i < vps->getNumAddLayerSets(); i++)
+    {
+      for (j = 1; j < vps->getNumIndependentLayers(); j++)
       {
         int len = 1;
@@ -1306,7 +1306,7 @@
     }
 
-    for (Int i = 0; i < vps->getNumAddLayerSets(); i++)
-    {
-      for (Int j = 1; j < vps->getNumIndependentLayers(); j++)
+    for (i = 0; i < vps->getNumAddLayerSets(); i++)
+    {
+      for (j = 1; j < vps->getNumIndependentLayers(); j++)
       {
         Int layerNum = 0;
