[FFmpeg-devel] [PATCH] avformat/hlsenc: resend full url of the init fragment mp4
Steven Liu
lq at chinaffmpeg.org
Mon May 4 07:00:41 EEST 2020
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 at chinaffmpeg.org>
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
av_dict_free(&options);
if (ret < 0)
return ret;
--
2.25.0
More information about the ffmpeg-devel
mailing list