support play hls from cache Signed-off-by: Steven Liu <l...@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) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel