mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-28 17:42:28 +08:00
obs-qsv11: Fix CBR Spike for Battlemage
This commit is contained in:
committed by
Ryan Foster
parent
b64f549ec9
commit
7f94906d5f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user