[FFmpeg-cvslog] avformat/hlsenc: return media_url directly if failed to get seperator

Limin Wang git at videolan.org
Fri Apr 10 06:45:00 EEST 2020


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Thu Apr  9 09:50:46 2020 +0800| [df08db07110dc00f7dc0ca8bc5162fffcb9008c7] | committer: Steven Liu

avformat/hlsenc: return media_url directly if failed to get seperator

Fix ticket: 8606
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

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

 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;



More information about the ffmpeg-cvslog mailing list