From df08db07110dc00f7dc0ca8bc5162fffcb9008c7 Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Thu, 9 Apr 2020 09:50:46 +0800 Subject: [PATCH] avformat/hlsenc: return media_url directly if failed to get seperator Fix ticket: 8606 Signed-off-by: Limin Wang --- libavformat/hlsenc.c | 2 ++ 1 file changed, 2 insertions(+) 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;