mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
obs-ffmpeg: Remove Windows 7 NVENC fallback
This commit is contained in:
parent
3594017fac
commit
051d227b51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user