projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c5445
)
Check for O_BINARY instead of a list of systems that need it
author
Ramiro Polla
<ramiro.polla@gmail.com>
Mon, 25 Jun 2007 20:34:20 +0000
(20:34 +0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Mon, 25 Jun 2007 20:34:20 +0000
(20:34 +0000)
Originally committed as revision 9427 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/file.c
patch
|
blob
|
history
diff --git
a/libavformat/file.c
b/libavformat/file.c
index
7acf446
..
70c9a64
100644
(file)
--- a/
libavformat/file.c
+++ b/
libavformat/file.c
@@
-41,7
+41,7
@@
static int file_open(URLContext *h, const char *filename, int flags)
} else {
access = O_RDONLY;
}
-#if
defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)
+#if
def O_BINARY
access |= O_BINARY;
#endif
fd = open(filename, access, 0666);
@@
-96,7
+96,7
@@
static int pipe_open(URLContext *h, const char *filename, int flags)
} else {
fd = 0;
}
-#if
defined(__MINGW32__) || defined(CONFIG_OS2) || defined(__CYGWIN__)
+#if
def O_BINARY
setmode(fd, O_BINARY);
#endif
h->priv_data = (void *)(size_t)fd;