Commit a1a27445 authored by michael's avatar michael

untested win32 binary pipe fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2922 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3eb6b5f2
...@@ -103,6 +103,9 @@ static int pipe_open(URLContext *h, const char *filename, int flags) ...@@ -103,6 +103,9 @@ static int pipe_open(URLContext *h, const char *filename, int flags)
} else { } else {
fd = 0; fd = 0;
} }
#if defined(CONFIG_WIN32) || defined(CONFIG_OS2) || defined(__CYGWIN__)
setmode(fd, O_BINARY);
#endif
h->priv_data = (void *)fd; h->priv_data = (void *)fd;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment