diff mbox series

[FFmpeg-devel,08/10] lavf/avio: use fs: by default instead of file:.

Message ID 20210727144813.452917-9-george@nsup.org
State New
Headers show
Series [FFmpeg-devel,01/10] lavu/internal: add hex to int functions.
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Nicolas George July 27, 2021, 2:48 p.m. UTC
Signed-off-by: Nicolas George <george@nsup.org>
---
 libavformat/avio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 13bba52e73..ebfecac893 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -260,7 +260,7 @@  static const struct URLProtocol *url_find_protocol(const char *filename)
     if (filename[proto_len] != ':' &&
         (strncmp(filename, "subfile,", 8) || !strchr(filename + proto_len + 1, ':')) ||
         is_dos_path(filename))
-        strcpy(proto_str, "file");
+        strcpy(proto_str, "fs");
     else
         av_strlcpy(proto_str, filename,
                    FFMIN(proto_len + 1, sizeof(proto_str)));