Browse Source

obs-qsv11: Fix CBR Spike for Battlemage

Gale, Thy-Lan 1 year ago
parent
commit
7f94906d5f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      plugins/obs-qsv11/QSV_Encoder_Internal.cpp

+ 3 - 3
plugins/obs-qsv11/QSV_Encoder_Internal.cpp

@@ -170,10 +170,10 @@ PRAGMA_WARN_PUSH
 PRAGMA_WARN_DEPRECATION
 static inline bool HasOptimizedBRCSupport(const mfxPlatform &platform, const mfxVersion &version, mfxU16 rateControl)
 {
-#if (MFX_VERSION_MAJOR >= 2 && MFX_VERSION_MINOR >= 12) || MFX_VERSION_MAJOR > 2
-	if ((version.Major >= 2 && version.Minor >= 12) || version.Major > 2)
+#if (MFX_VERSION_MAJOR >= 2 && MFX_VERSION_MINOR >= 13) || MFX_VERSION_MAJOR > 2
+	if ((version.Major >= 2 && version.Minor >= 13) || version.Major > 2)
 		if (rateControl == MFX_RATECONTROL_CBR &&
-		    (platform.CodeName >= MFX_PLATFORM_LUNARLAKE && platform.CodeName != MFX_PLATFORM_ALDERLAKE_N))
+		    (platform.CodeName >= MFX_PLATFORM_BATTLEMAGE && platform.CodeName != MFX_PLATFORM_ALDERLAKE_N))
 			return true;
 #endif
 	UNUSED_PARAMETER(platform);