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

Nicolas George george at nsup.org
Tue Jul 27 17:48:11 EEST 2021


Signed-off-by: Nicolas George <george at nsup.org>
---
 libavformat/avio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)));
-- 
2.30.2



More information about the ffmpeg-devel mailing list