Skip to content

Commit

Permalink
obs-qsv11: Check all encoders are Intel devices
Browse files Browse the repository at this point in the history
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 4a903d5)
  • Loading branch information
kkartaltepe authored and RytoEX committed Mar 21, 2024
1 parent 2109869 commit 7300087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/obs-qsv11/obs-qsv11-plugin-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7300087

Please sign in to comment.