changeset 394:c7a3987b4462 libavformat

untested win32 binary pipe fix
author michael
date Wed, 24 Mar 2004 18:29:30 +0000
parents 946a9d65206c
children c1ed10f3b052
files file.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/file.c	Wed Mar 24 06:32:57 2004 +0000
+++ b/file.c	Wed Mar 24 18:29:30 2004 +0000
@@ -103,6 +103,9 @@
     } else {
         fd = 0;
     }
+#if defined(CONFIG_WIN32) || defined(CONFIG_OS2) || defined(__CYGWIN__)
+    setmode(fd, O_BINARY);
+#endif
     h->priv_data = (void *)fd;
     return 0;
 }