aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-04-09 09:50:46 +0800
committerSteven Liu <lq@chinaffmpeg.org>2020-04-10 11:44:36 +0800
commitdf08db07110dc00f7dc0ca8bc5162fffcb9008c7 (patch)
treef19ff9798017dc52af9dcde1cc223a6de99a8ae4 /libavformat/hlsenc.c
parent081ef58619208859831af7a741a325a0a96406ea (diff)
downloadffmpeg-df08db07110dc00f7dc0ca8bc5162fffcb9008c7.tar.gz
avformat/hlsenc: return media_url directly if failed to get seperator
Fix ticket: 8606 Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index a29b2625e4..e34833fd89 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1251,6 +1251,8 @@ static const char* get_relative_url(const char *master_url, const char *media_ur
av_log(NULL, AV_LOG_WARNING, "Unable to find relative url\n");
return NULL;
}
+ } else {
+ return media_url;
}
return media_url + base_len + 1;