[FFmpeg-devel] [PATCH] avformat/hls: support cache protocol in hls

Steven Liu lq at chinaffmpeg.org
Wed Sep 20 06:03:00 EEST 2017


support play hls from cache

Signed-off-by: Steven Liu <lq at onvideo.cn>
---
 libavformat/hls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 0995345bbf..889ae6c201 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -628,7 +628,7 @@ static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url,
                 url);
             return AVERROR_INVALIDDATA;
         }
-    } else if (av_strstart(proto_name, "http", NULL)) {
+    } else if (av_strstart(proto_name, "http", NULL) || av_strstart(proto_name, "cache", NULL)) {
         ;
     } else
         return AVERROR_INVALIDDATA;
-- 
2.11.0 (Apple Git-81)





More information about the ffmpeg-devel mailing list