From c7b0c63d01a447224cd6e3d141de30e28a92512d Mon Sep 17 00:00:00 2001 From: tytan652 Date: Mon, 12 Aug 2024 22:10:12 +0200 Subject: [PATCH] obs-nvenc: Fix building with nvcodec 12.2 --- plugins/obs-nvenc/nvenc-opts-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/obs-nvenc/nvenc-opts-parser.c b/plugins/obs-nvenc/nvenc-opts-parser.c index 6b8ad4207..397f3dc63 100644 --- a/plugins/obs-nvenc/nvenc-opts-parser.c +++ b/plugins/obs-nvenc/nvenc-opts-parser.c @@ -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)