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

obs-ffmpeg: Remove Windows 7 NVENC fallback

This commit is contained in:
Rodney 2023-12-25 12:47:26 +01:00 committed by Lain
parent 3594017fac
commit 051d227b51

View File

@ -369,23 +369,7 @@ bool obs_module_load(void)
blog(LOG_INFO, "NVENC supported");
#ifdef _WIN32
if (get_win_ver_int() > 0x0601) {
obs_nvenc_load(h264, hevc, av1);
} else {
// if on Win 7, new nvenc isn't available so there's
// no nvenc encoder for the user to select, expose
// the old encoder directly
if (h264) {
h264_nvenc_encoder_info.caps &=
~OBS_ENCODER_CAP_INTERNAL;
}
#ifdef ENABLE_HEVC
if (hevc) {
hevc_nvenc_encoder_info.caps &=
~OBS_ENCODER_CAP_INTERNAL;
}
#endif
}
obs_nvenc_load(h264, hevc, av1);
#endif
if (h264)
obs_register_encoder(&h264_nvenc_encoder_info);