]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hlsenc: resend full url of the init fragment mp4
authorSteven Liu <lq@chinaffmpeg.org>
Mon, 4 May 2020 04:00:41 +0000 (12:00 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 6 May 2020 03:56:58 +0000 (11:56 +0800)
fix ticket: 8651
because the init fragment mp4 file name is without base url name,
so just modify it use the full url which splice after init function.

Tested-by: matclayton
Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
libavformat/hlsenc.c

index f91108e8924a1f07868f316d6782cc78861b2d27..b269d015d81dfb5221740b0b6d363b8a790475c9 100644 (file)
@@ -2274,7 +2274,7 @@ static int hls_init_file_resend(AVFormatContext *s, VariantStream *vs)
     int ret = 0;
 
     set_http_options(s, &options, hls);
-    ret = hlsenc_io_open(s, &vs->out, hls->fmp4_init_filename, &options);
+    ret = hlsenc_io_open(s, &vs->out, vs->base_output_dirname, &options);
     av_dict_free(&options);
     if (ret < 0)
         return ret;