obs-ffmpeg: Remove Windows 7 NVENC fallback

This commit is contained in:
Rodney
2024-01-06 17:20:26 -06:00
committed by Lain
parent 3594017fac
commit 051d227b51
+1 -17
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);