diff mbox series

[FFmpeg-devel] avformat/hlsenc: resend full url of the init fragment mp4

Message ID 20200504040041.98669-1-lq@chinaffmpeg.org
State Accepted
Commit 666dbe7aace54b103af09cd111a56822062528c1
Headers show
Series [FFmpeg-devel] avformat/hlsenc: resend full url of the init fragment mp4 | expand


Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Steven Liu May 4, 2020, 4 a.m. UTC
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.

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 4a83db04e9..4c3c643773 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2258,7 +2258,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);
     if (ret < 0)
         return ret;