[FFmpeg-devel] [PATCH 05/10] lavf/avio: treat fs: the same way as file:.

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


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

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 4846bbd8c6..13bba52e73 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -217,7 +217,9 @@ int ffurl_connect(URLContext *uc, AVDictionary **options)
     uc->is_connected = 1;
     /* We must be careful here as ffurl_seek() could be slow,
      * for example for http */
-    if ((uc->flags & AVIO_FLAG_WRITE) || !strcmp(uc->prot->name, "file"))
+    if ((uc->flags & AVIO_FLAG_WRITE) ||
+        !strcmp(uc->prot->name, "file") ||
+        !strcmp(uc->prot->name, "fs"))
         if (!uc->is_streamed && ffurl_seek(uc, 0, SEEK_SET) < 0)
             uc->is_streamed = 1;
     return 0;
-- 
2.30.2



More information about the ffmpeg-devel mailing list