libavformat/dashenc: Fix relative URI of HLS master playlist
authorAntonio Morell <antonio.morell@system73.com>
Thu, 26 Jul 2018 13:22:21 +0000 (14:22 +0100)
committerKarthick Jeyapal <kjeyapal@akamai.com>
Mon, 30 Jul 2018 05:39:54 +0000 (11:09 +0530)
libavformat/dashenc.c

index a9b8b1d..ae57fd5 100644 (file)
@@ -868,7 +868,7 @@ static int write_manifest(AVFormatContext *s, int final)
         int max_audio_bitrate = 0;
 
         if (*c->dirname)
-            snprintf(filename_hls, sizeof(filename_hls), "%s/master.m3u8", c->dirname);
+            snprintf(filename_hls, sizeof(filename_hls), "%smaster.m3u8", c->dirname);
         else
             snprintf(filename_hls, sizeof(filename_hls), "master.m3u8");