diff options
Diffstat (limited to 'libavformat/file.c')
-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 { |