[FFmpeg-cvslog] avcodec/nvenc.c: Use new safe dlopen code.
Matt Oliver
git at videolan.org
Sat Nov 5 09:08:27 EET 2016
ffmpeg | branch: master | Matt Oliver <protogonoi at gmail.com> | Sat Oct 29 18:25:36 2016 +1100| [6ead033bca9accd56f188cc004b4c4b18d616aa7] | committer: Matt Oliver
avcodec/nvenc.c: Use new safe dlopen code.
Signed-off-by: Matt Oliver <protogonoi at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6ead033bca9accd56f188cc004b4c4b18d616aa7
---
libavcodec/nvenc.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 2505c3d..a3a2ef5 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
More information about the ffmpeg-cvslog
mailing list