1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

untested win32 binary pipe fix

Originally committed as revision 2922 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-03-24 18:29:30 +00:00
parent 490c735d1b
commit c43e7a6611

View File

@ -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;
} }