summaryrefslogtreecommitdiff
path: root/libavformat/tests
diff options
context:
space:
mode:
authorruiquan.crq <caihaoning83@gmail.com>2020-10-17 23:17:14 +0800
committerMarton Balint <cus@passwd.hu>2020-10-28 21:34:09 +0100
commitae9a1a96982669926a4ecb92b066814f5f27dc38 (patch)
treea525e83480275d1dcdca207cdb24f7f3c4d6434c /libavformat/tests
parent37d742b607d47122d23d548ffd7ad9b09cbc5298 (diff)
downloadffmpeg-ae9a1a96982669926a4ecb92b066814f5f27dc38.tar.gz
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/tests')
-rw-r--r--libavformat/tests/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/tests/url.c b/libavformat/tests/url.c
index 2440ae08bc..2eb597bb5e 100644
--- a/libavformat/tests/url.c
+++ b/libavformat/tests/url.c
@@ -90,6 +90,8 @@ int main(void)
test_decompose("http://[::1]/dev/null");
test_decompose("http://[::1]:8080/dev/null");
test_decompose("//ffmpeg/dev/null");
+ test_decompose("test?url=http://server/path");
+ test_decompose("dummy.mp4#t=0:02:00,121.5");
printf("Testing ff_make_absolute_url:\n");
test(NULL, "baz");