Message ID | 20211002070245.831-1-soekibun@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] do not check protocol on hls without network. | expand |
Context | Check | Description |
---|---|---|
andriy/commit_msg_x86 | warning | The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ". |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/commit_msg_ppc | warning | The first line of the commit message must start with a context terminated by a colon and a space, for example "lavu/opt: " or "doc: ". |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
diff --git a/libavformat/hls.c b/libavformat/hls.c index 9fd4ad9f32..e139922ab8 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -631,6 +631,7 @@ static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url, int ret; int is_http = 0; +#if CONFIG_HTTP_PROTOCOL if (av_strstart(url, "crypto", NULL)) { if (url[6] == '+' || url[6] == ':') proto_name = avio_find_protocol_name(url + 7); @@ -669,6 +670,7 @@ static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url, ; else if (strcmp(proto_name, "file") || !strncmp(url, "file,", 5)) return AVERROR_INVALIDDATA; +#endif av_dict_copy(&tmp, *opts, 0); av_dict_copy(&tmp, opts2, 0);