mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
obs-nvenc: Fix building with nvcodec 12.2
This commit is contained in:
@@ -85,7 +85,7 @@ static bool apply_rc_opt(const struct obs_option *opt,
|
||||
APPLY_BIT_OPT(aqStrength, 4)
|
||||
|
||||
#ifdef NVENC_12_2_OR_LATER
|
||||
APPLY_INT_OPT(lookaheadLevel, NV_ENC_LOOKAHEAD_LEVEL)
|
||||
APPLY_INT_OPT(lookaheadLevel, NV_ENC_LOOKAHEAD_LEVEL, PRIu32)
|
||||
#endif
|
||||
|
||||
/* Macros above will return true if succesfully evaluated.
|
||||
@@ -153,7 +153,7 @@ static bool apply_hevc_opt(struct obs_option *opt, NV_ENC_CONFIG_HEVC *nv_conf)
|
||||
APPLY_INT_OPT(idrPeriod, uint32_t, PRIu32)
|
||||
APPLY_INT_OPT(useBFramesAsRef, NV_ENC_BFRAME_REF_MODE, PRIu32)
|
||||
#ifdef NVENC_12_2_OR_LATER
|
||||
APPLY_INT_OPT(tfLevel, NV_ENC_TEMPORAL_FILTER_LEVEL)
|
||||
APPLY_INT_OPT(tfLevel, NV_ENC_TEMPORAL_FILTER_LEVEL, PRIu32)
|
||||
#endif
|
||||
|
||||
APPLY_BIT_OPT(enableFillerDataInsertion, 1)
|
||||
|
||||
Reference in New Issue
Block a user