Skip to content

Commit

Permalink
obs-nvenc: Fix building with nvcodec 12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tytan652 authored and derrod committed Aug 12, 2024
1 parent 1b25acd commit c7b0c63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/obs-nvenc/nvenc-opts-parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c7b0c63

Please sign in to comment.