summaryrefslogtreecommitdiff
path: root/libavformat/file.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-03-24 18:29:30 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-03-24 18:29:30 +0000
commitc43e7a66110f750c0716c166714b6e29baf68e9a (patch)
tree35093a4960f82a63a2ecf01663d581e2a01fac09 /libavformat/file.c
parent490c735d1b04a6e5b8ce4b66c43898183b36fb33 (diff)
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.c3
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;
}