Index: /branches/HTM-8.0-dev0/source/Lib/TLibCommon/TypeDef.h
===================================================================
--- /branches/HTM-8.0-dev0/source/Lib/TLibCommon/TypeDef.h	(revision 615)
+++ /branches/HTM-8.0-dev0/source/Lib/TLibCommon/TypeDef.h	(revision 616)
@@ -207,5 +207,6 @@
 
 
-
+/// FIXES
+#define H_MV_FIX_LID_PIC_HASH_SEI_T40                      1   // Fix wrong layer_id in decoded picture hash SEI 
 
 /////////////////////////////////////////////////////////////////////////////////////////
Index: /branches/HTM-8.0-dev0/source/Lib/TLibEncoder/TEncGOP.cpp
===================================================================
--- /branches/HTM-8.0-dev0/source/Lib/TLibEncoder/TEncGOP.cpp	(revision 615)
+++ /branches/HTM-8.0-dev0/source/Lib/TLibEncoder/TEncGOP.cpp	(revision 616)
@@ -1816,5 +1816,9 @@
           digestStr = digestToString(sei_recon_picture_digest.digest, 4);
         }
+#if H_MV_FIX_LID_PIC_HASH_SEI_T40
+        OutputNALUnit nalu(NAL_UNIT_SUFFIX_SEI, pcSlice->getTLayer(), getLayerId() );
+#else
         OutputNALUnit nalu(NAL_UNIT_SUFFIX_SEI, pcSlice->getTLayer());
+#endif
 
         /* write the SEI messages */
