aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avr.c
diff options
context:
space:
mode:
authorTobias Rapp <t.rapp@noa-audio.com>2015-10-29 09:11:37 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-06 12:40:49 +0100
commit1bb7529ac2eda7d3b7ffffeb20ec477d4440b944 (patch)
treee11fcba2587d669f7b3ec80622ae65b1cb52258b /libavformat/avr.c
parent99dd039d743db91b8d001eb4521c7ce392c195ad (diff)
downloadffmpeg-1bb7529ac2eda7d3b7ffffeb20ec477d4440b944.tar.gz
avutil/file_open: avoid file handle inheritance on Windows
Avoids inheritance of file handles on Windows systems similar to the O_CLOEXEC/FD_CLOEXEC flag on Linux. Fixes file lock issues in Windows applications when a child process is started with handle inheritance enabled (standard input/output redirection) while a FFmpeg transcoding is running in the parent process. Links relevant to the subject: https://msdn.microsoft.com/en-us/library/w7sa2b22.aspx Describes the _wsopen() function and the O_NOINHERIT flag. File handles opened by _wsopen() are inheritable by default. https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx Describes handle inheritance when creating new processes. Handle inheritance must be enabled (bInheritHandles = TRUE) e.g. when you want to pass handles for stdin/stdout via lpStartupInfo. Signed-off-by: Tobias Rapp <t.rapp@noa-audio.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 474665346616e446ecd1407002fdf5f88201bf72) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avr.c')
0 files changed, 0 insertions, 0 deletions