summaryrefslogtreecommitdiff
path: root/libavformat/tests
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-02-03 01:32:00 +0100
committerMarton Balint <cus@passwd.hu>2020-02-15 18:41:36 +0100
commit554576b6cfe79a91d37e14d3617ca417562085db (patch)
tree5d85a565eb2cdd02f2fdd1be9d89beb0f62f29fd /libavformat/tests
parent365b817b51630447305f49a4e2f79ab8ad842473 (diff)
downloadffmpeg-554576b6cfe79a91d37e14d3617ca417562085db.tar.gz
avformat/utils: make av_url_split search for hashmark as well to separate hostname
RFC 3986 states that the generic syntax uses the slash ("/"), question mark ("?"), and number sign ("#") characters to delimit components that are significant to the generic parser's hierarchical interpretation of an identifier. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/tests')
-rw-r--r--libavformat/tests/url.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/tests/url.c b/libavformat/tests/url.c
index d99876f02c..5e484fd428 100644
--- a/libavformat/tests/url.c
+++ b/libavformat/tests/url.c
@@ -75,6 +75,7 @@ int main(void)
test2("https://1l-lh.a.net/i/1LIVE_HDS@179577/master.m3u8");
test2("ftp://u:p%2B%2F2@ftp.pbt.com/ExportHD.mpg");
test2("https://key.dns.com?key_id=2&model_id=12345&&access_key=");
+ test2("http://example.com#tag");
return 0;
}