fixed 'file:' in URLs

Originally committed as revision 1290 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Fabrice Bellard 23 years ago
parent a382b927ed
commit a1dfc201bd
  1. 2
      libavformat/file.c

@ -35,6 +35,8 @@ static int file_open(URLContext *h, const char *filename, int flags)
int access;
int fd;
strstart(filename, "file:", &filename);
if (flags & URL_WRONLY) {
access = O_CREAT | O_TRUNC | O_WRONLY;
} else {

Loading…
Cancel
Save