projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
490c735
)
untested win32 binary pipe fix
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 24 Mar 2004 18:29:30 +0000
(18:29 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 24 Mar 2004 18:29:30 +0000
(18:29 +0000)
Originally committed as revision 2922 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/file.c
patch
|
blob
|
history
diff --git
a/libavformat/file.c
b/libavformat/file.c
index
b1d61ca
..
83f2e42
100644
(file)
--- 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;
}