/* 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;
if (!base)
base = "";
- if ((ret = ff_url_decompose(&ub, base, NULL) < 0) ||
- (ret = ff_url_decompose(&uc, rel, NULL) < 0))
+ if ((ret = ff_url_decompose(&ub, base, NULL)) < 0 ||
+ (ret = ff_url_decompose(&uc, rel, NULL)) < 0)
goto error;
keep = ub.url;