Browse Source

untested win32 binary pipe fix

Originally committed as revision 2922 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
c43e7a6611
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/file.c

+ 3
- 0
libavformat/file.c View File

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


Loading…
Cancel
Save