Skip to content

Commit

Permalink
obs-ffmpeg: add missing brackets in nvenc check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleuzen committed Apr 23, 2023
1 parent 55e6886 commit 69c4e53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/obs-ffmpeg/obs-ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,11 @@ static bool nvenc_supported(bool *out_h264, bool *out_hevc, bool *out_av1)
if (success) {
void *const lib = os_dlopen("libnvidia-encode.so.1");
success = lib != NULL;
if (success)
if (success) {
os_dlclose(lib);
av1 = nvenc_codec_exists("av1_nvenc", "nvenc_av1");
av1 = nvenc_codec_exists("av1_nvenc",
"nvenc_av1");
}
}
#else
void *const lib = os_dlopen("libnvidia-encode.so.1");
Expand Down

0 comments on commit 69c4e53

Please sign in to comment.