Browse Source

obs-nvenc: Fix building with nvcodec 12.2

tytan652 1 year ago
parent
commit
c7b0c63d01
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/obs-nvenc/nvenc-opts-parser.c

+ 2 - 2
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)