0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

obs-qsv11: Check all encoders are Intel devices

On Linux, we enumerate all VA-API devices, which incorrectly enables
QSV AV1/HEVC encoders when AMD devices report these capabilities.

(cherry picked from commit 4a903d5f85)
This commit is contained in:
Kurt Kartaltepe 2024-03-17 22:37:57 -07:00 committed by Ryan Foster
parent 2109869e68
commit 7300087381

View File

@ -84,8 +84,8 @@ bool obs_module_load(void)
for (size_t i = 0; i < adapter_count; i++) {
struct adapter_info *adapter = &adapters[i];
avc_supported |= adapter->is_intel;
av1_supported |= adapter->supports_av1;
hevc_supported |= adapter->supports_hevc;
av1_supported |= adapter->is_intel && adapter->supports_av1;
hevc_supported |= adapter->is_intel && adapter->supports_hevc;
}
if (avc_supported) {