mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 07:25:05 -05:00
obs-ffmpeg: Fix NVENC HEVC fallback being H.264
This commit is contained in:
@@ -1024,7 +1024,12 @@ static void *nvenc_create_h264_hevc(bool hevc, obs_data_t *settings,
|
||||
}
|
||||
|
||||
reroute:
|
||||
return obs_encoder_create_rerouted(encoder, "ffmpeg_nvenc");
|
||||
const char *fallback_name = "ffmpeg_nvenc";
|
||||
#ifdef ENABLE_HEVC
|
||||
if (hevc)
|
||||
fallback_name = "ffmpeg_hevc_nvenc";
|
||||
#endif
|
||||
return obs_encoder_create_rerouted(encoder, fallback_name);
|
||||
}
|
||||
|
||||
static void *h264_nvenc_create(obs_data_t *settings, obs_encoder_t *encoder)
|
||||
|
||||
Reference in New Issue
Block a user