diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-24 18:29:30 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-24 18:29:30 +0000 |
commit | c43e7a66110f750c0716c166714b6e29baf68e9a (patch) | |
tree | 35093a4960f82a63a2ecf01663d581e2a01fac09 /libavformat/file.c | |
parent | 490c735d1b04a6e5b8ce4b66c43898183b36fb33 (diff) | |
download | ffmpeg-c43e7a66110f750c0716c166714b6e29baf68e9a.tar.gz |
untested win32 binary pipe fix
Originally committed as revision 2922 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/file.c')
-rw-r--r-- | libavformat/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/file.c b/libavformat/file.c index b1d61caf89..83f2e42ae1 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -103,6 +103,9 @@ static int pipe_open(URLContext *h, const char *filename, int flags) } else { fd = 0; } +#if defined(CONFIG_WIN32) || defined(CONFIG_OS2) || defined(__CYGWIN__) + setmode(fd, O_BINARY); +#endif h->priv_data = (void *)fd; return 0; } |