Message ID | 20170920030300.11321-1-lq@chinaffmpeg.org |
---|---|
State | New |
Headers | show |
On Wed, Sep 20, 2017 at 11:03:00AM +0800, Steven Liu wrote: > support play hls from cache > > Signed-off-by: Steven Liu <lq@onvideo.cn> > --- > libavformat/hls.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This may be unsafe and allow bypassing the file/http checks [...]
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;
support play hls from cache Signed-off-by: Steven Liu <lq@onvideo.cn> --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)