aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-08-08 15:27:41 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-15 20:25:13 +0200
commit65fff8e71ac92348c2bc8d4997aa5f732a5be321 (patch)
tree161b23b694c871119d322a6fbe68f50333907bd4 /ffmpeg.c
parent3988470ee3551f801e855d295ad9603fb9bd5757 (diff)
downloadffmpeg-65fff8e71ac92348c2bc8d4997aa5f732a5be321.tar.gz
cmdutils: remove the current working directory from the DLL search path on win32
Reviewed-by: Matt Oliver <protogonoi@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 3bf142c77337814458ed8e036796934032d9837f) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 602cbfa45d..2887e91d1a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4118,6 +4118,8 @@ int main(int argc, char **argv)
int ret;
int64_t ti;
+ init_dynload();
+
register_exit(ffmpeg_cleanup);
setvbuf(stderr,NULL,_IONBF,0); /* win32 runtime needs this */