diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-11-29 19:19:47 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-11-29 19:19:47 +0000 |
commit | a1dfc201bd62a35ce740856528cef33ddfc64816 (patch) | |
tree | e92377dcabc685d4316b0d57564331fdb68e98b7 /libavformat | |
parent | a382b927ed7f75784343df43dacfdd5c27110d7a (diff) | |
download | ffmpeg-streaming-a1dfc201bd62a35ce740856528cef33ddfc64816.zip ffmpeg-streaming-a1dfc201bd62a35ce740856528cef33ddfc64816.tar.gz |
fixed 'file:' in URLs
Originally committed as revision 1290 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/file.c b/libavformat/file.c index 8206ff9..7390962 100644 --- a/libavformat/file.c +++ b/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 { |