Index: source/Lib/CommonLib/RdCost.cpp
===================================================================
--- source/Lib/CommonLib/RdCost.cpp	(Revision 976)
+++ source/Lib/CommonLib/RdCost.cpp	(Arbeitskopie)
@@ -177,10 +177,12 @@
   m_motionLambda               = 0;
   m_iCostScale                 = 0;
 #if JVET_M0427_INLOOP_RESHAPER
+#if ! JVET_M0427_INIT_FIX
   m_signalType                 = RESHAPE_SIGNAL_NULL;
   m_chromaWeight               = 1.0;
   m_lumaBD                     = 10;
 #endif
+#endif
 }
 
 
@@ -2868,9 +2870,15 @@
 
 #if WCG_EXT
 #if JVET_M0427_INLOOP_RESHAPER
+#if JVET_M0427_INIT_FIX
+  uint32_t   RdCost::m_signalType                 = RESHAPE_SIGNAL_NULL;
+  double     RdCost::m_chromaWeight               = 1.0;
+  int        RdCost::m_lumaBD                     = 10;
+#else
 uint32_t   RdCost::m_signalType;
 double     RdCost::m_chromaWeight;
 int        RdCost::m_lumaBD;
+#endif
 std::vector<double> RdCost::m_reshapeLumaLevelToWeightPLUT;
 std::vector<double> RdCost::m_lumaLevelToWeightPLUT;
 #else
@@ -2928,6 +2936,7 @@
       m_lumaLevelToWeightPLUT[i] = m_reshapeLumaLevelToWeightPLUT[i];
     }
   }
+  m_chromaWeight = 1.0;
 }
 
 void RdCost::updateReshapeLumaLevelToWeightTableChromaMD(std::vector<Pel>& ILUT)
Index: source/Lib/CommonLib/TypeDef.h
===================================================================
--- source/Lib/CommonLib/TypeDef.h	(Revision 976)
+++ source/Lib/CommonLib/TypeDef.h	(Arbeitskopie)
@@ -50,6 +50,8 @@
 #include <assert.h>
 #include <cassert>
 
+#define JVET_M0427_INIT_FIX                               1
+
 #define JVET_M0055_DEBUG_CTU                              1 // DebugCTU encoder debug option
 
 #define JVET_M0297_32PT_MTS_ZERO_OUT                      1 // 32 point MTS based on skipping high frequency coefficients

