summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2020-05-04 12:00:41 +0800
committerSteven Liu <lq@chinaffmpeg.org>2020-05-06 11:56:58 +0800
commit666dbe7aace54b103af09cd111a56822062528c1 (patch)
treed49fb6528d51a6f878e035457084b3a248045674 /libavformat
parent7f0200d0d2639ed9cfd37934b29b43c3c3c4e674 (diff)
avformat/hlsenc: resend full url of the init fragment mp4
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index f91108e892..b269d015d8 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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;