Index: branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
===================================================================
--- branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp	(revision 912)
+++ branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp	(revision 914)
@@ -548,4 +548,8 @@
       if( pcPPS->getCGSFlag() )
       {
+#if R0157_RESTRICT_PPSID_FOR_CGS_LUT
+        // when pps_pic_parameter_set_id greater than or equal to 8, colour_mapping_enabled_flag shall be equal to 0
+        assert( pcPPS->getPPSId() < 8 );
+#endif
         xParse3DAsymLUT( pc3DAsymLUT );
         pcPPS->setCGSOutputBitDepthY( pc3DAsymLUT->getOutputBitDepthY() );
