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-08 18:41:13 +0200
commit9745c5ebf87311657b7ba42eb36a7b05de57cb07 (patch)
treebc9d19f9ebb5d24c27772aee01b7a4c000f2049c /ffmpeg.c
parent19d2921bbfec13c7a843bdbdb5687cf821b02cff (diff)
downloadffmpeg-9745c5ebf87311657b7ba42eb36a7b05de57cb07.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 9ffd833a91..b26995deb0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4303,6 +4303,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 */