aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorMatt Oliver <protogonoi@gmail.com>2016-10-29 18:25:36 +1100
committerMatt Oliver <protogonoi@gmail.com>2016-11-05 18:09:03 +1100
commit6ead033bca9accd56f188cc004b4c4b18d616aa7 (patch)
treea7acb43d5baca3c59ba040bf322acc5b519bb7fa /libavcodec/nvenc.c
parentd6f85ec2700e40b3ec864d5ee405b7e257778e1f (diff)
downloadffmpeg-6ead033bca9accd56f188cc004b4c4b18d616aa7.tar.gz
avcodec/nvenc.c: Use new safe dlopen code.
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 2505c3d1e3..a3a2ef5872 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -34,11 +34,7 @@
#endif
#if defined(_WIN32)
-#include <windows.h>
-
-#define dlopen(filename, flags) LoadLibrary(TEXT(filename))
-#define dlsym(handle, symbol) GetProcAddress(handle, symbol)
-#define dlclose(handle) FreeLibrary(handle)
+#include "compat/w32dlfcn.h"
#else
#include <dlfcn.h>
#endif