diff --git a/source/Lib/CommonLib/TypeDef.h b/source/Lib/CommonLib/TypeDef.h
index 4274ecc618724cb907ff6eff29dbd437f09b6cdc..19da3734a6a8e090269395f07122b782da44e564 100644
--- a/source/Lib/CommonLib/TypeDef.h
+++ b/source/Lib/CommonLib/TypeDef.h
@@ -139,8 +139,10 @@ typedef std::pair<int, int>  TrCost;
 #define KEEP_PRED_AND_RESI_SIGNALS                        0
 
 #if JVET_AB0072
+#ifndef GREEN_METADATA_SEI_ENABLED
 #define GREEN_METADATA_SEI_ENABLED 0 //JVET-AB0072: Analyser for the Green Metadata SEI
 #endif
+#endif
 
 // ====================================================================================================================
 // Debugging