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:
parent
2109869e68
commit
7300087381
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user