[FFmpeg-cvslog] avformat/dashdec: refine uri path with double dot process

Gorilla Maguila git at videolan.org
Sun Dec 23 09:21:11 EET 2018


ffmpeg | branch: master | Gorilla Maguila <gorilla.maguila at gmail.com> | Sun Dec 23 15:18:55 2018 +0800| [bb586a97032759f5a937d9d908eedd25d72499b7] | committer: Steven Liu

avformat/dashdec: refine uri path with double dot process

fix ticket: 7540

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb586a97032759f5a937d9d908eedd25d72499b7
---

 libavformat/dashdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 1deb60ff21..f4f4e935de 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -506,7 +506,7 @@ static char *get_content_url(xmlNodePtr *baseurl_nodes,
     }
 
     if (val)
-        av_strlcat(tmp_str, (const char*)val, max_url_size);
+        ff_make_absolute_url(tmp_str, max_url_size, tmp_str, val);
 
     if (rep_id_val) {
         url = av_strireplace(tmp_str, "$RepresentationID$", (const char*)rep_id_val);



More information about the ffmpeg-cvslog mailing list