From a1dfc201bd62a35ce740856528cef33ddfc64816 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Fri, 29 Nov 2002 19:19:47 +0000 Subject: [PATCH] fixed 'file:' in URLs Originally committed as revision 1290 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/file.c b/libavformat/file.c index 8206ff9255..7390962864 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 {