diff options
author | ruiquan.crq <caihaoning83@gmail.com> | 2020-10-17 23:17:14 +0800 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-10-28 21:34:09 +0100 |
commit | ae9a1a96982669926a4ecb92b066814f5f27dc38 (patch) | |
tree | a525e83480275d1dcdca207cdb24f7f3c4d6434c /libavformat/url.c | |
parent | 37d742b607d47122d23d548ffd7ad9b09cbc5298 (diff) |
lavf/url: fix relative url parsing when the query string or fragment has a colon
This disallows the usage of ? and # in libavformat specific scheme options
(e.g. subfile,,start,32815239,end,0,,:video.ts) but this change was considered
acceptable.
Signed-off-by: ruiquan.crq <caihaoning83@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/url.c')
-rw-r--r-- | libavformat/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/url.c b/libavformat/url.c index 3c858f0257..6db4b4e1ae 100644 --- a/libavformat/url.c +++ b/libavformat/url.c @@ -97,7 +97,7 @@ int ff_url_decompose(URLComponents *uc, const char *url, const char *end) /* scheme */ uc->scheme = cur; - p = find_delim(":/", cur, end); /* lavf "schemes" can contain options */ + p = find_delim(":/?#", cur, end); /* lavf "schemes" can contain options but not some RFC 3986 delimiters */ if (*p == ':') cur = p + 1; |