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

obs-ffmpeg: Add NVIDIA Tesla NVENC support

This commit is contained in:
MagicBear 2022-06-21 12:44:47 +08:00 committed by tt2468
parent 16f5fe5ee2
commit f54f8ee714

View File

@ -200,8 +200,10 @@ static bool nvenc_device_available(void)
while ((dirent = os_readdir(dir)) != NULL) {
int id;
if (get_id_from_sys(dirent->d_name, "class") !=
0x030000) { // 0x030000 = VGA compatible controller
if (get_id_from_sys(dirent->d_name, "class") != 0x030000 &&
get_id_from_sys(dirent->d_name, "class") !=
0x030200) { // 0x030000 = VGA compatible controller
// 0x030200 = 3D controller
continue;
}