Index: branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp
===================================================================
--- branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp	(revision 1377)
+++ branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp	(revision 1379)
@@ -684,4 +684,7 @@
     std::vector<const TComHRD*> hrdVec;
     std::vector<Int> syntaxElemLen(maxValues, 0);
+
+    Int schedSelIdx = 0;
+
     for(i = 0; i < maxValues; i++)
     {
@@ -701,5 +704,5 @@
       }
     }
-    pHRD = hrdVec[i];
+    pHRD = hrdVec[schedSelIdx];
   }
   else
