Browse Source

obs-qsv11: Drop Windows guards on LowPower settings

Setting AdaptiveCQM to ON when LowPower is OFF crashes the
intel-oneapi-gpu implementation on Linux when using the AV1 encoder.
But using the same LowPower settings as Windows works so lets drop the
current guards.
Kurt Kartaltepe 2 years ago
parent
commit
32c07929b0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      plugins/obs-qsv11/QSV_Encoder_Internal.cpp

+ 1 - 2
plugins/obs-qsv11/QSV_Encoder_Internal.cpp

@@ -258,7 +258,7 @@ mfxStatus QSV_Encoder_Internal::InitParams(qsv_param_t *pParams,
 
 	mfxPlatform platform;
 	MFXVideoCORE_QueryPlatform(m_session, &platform);
-#if defined(_WIN32)
+
 	PRAGMA_WARN_PUSH
 	PRAGMA_WARN_DEPRECATION
 	if (codec == QSV_CODEC_AVC || codec == QSV_CODEC_HEVC) {
@@ -268,7 +268,6 @@ mfxStatus QSV_Encoder_Internal::InitParams(qsv_param_t *pParams,
 		m_mfxEncParams.mfx.LowPower = MFX_CODINGOPTION_ON;
 	}
 	PRAGMA_WARN_POP
-#endif
 
 	m_mfxEncParams.mfx.RateControlMethod = pParams->nRateControl;