]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils.c
avisynth: support pix_fmts added to AviSynth+
[ffmpeg] / cmdutils.c
index 03a4836207466c2560666a1932a06edaf6c66389..6960f8c99c41b93b0a222be6983125f2ae41cfd7 100644 (file)
@@ -107,6 +107,15 @@ static void log_callback_report(void *ptr, int level, const char *fmt, va_list v
     }
 }
 
+void init_dynload(void)
+{
+#ifdef _WIN32
+    /* Calling SetDllDirectory with the empty string (but not NULL) removes the
+     * current working directory from the DLL search path as a security pre-caution. */
+    SetDllDirectory("");
+#endif
+}
+
 static void (*program_exit)(int ret);
 
 void register_exit(void (*cb)(int ret))