[FFmpeg-devel] [PATCH] avformat/hlsenc: set http options before use delete http method

Steven Liu liuqi05 at kuaishou.com
Tue Jul 20 06:05:49 EEST 2021


Fix ticket: 9338
Set options which set by user from parent options.

Signed-off-by: Steven Liu <liuqi05 at kuaishou.com>
---
 libavformat/hlsenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 151ef6ec8f..5272ecabbb 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -570,6 +570,7 @@ static int hls_delete_file(HLSContext *hls, AVFormatContext *avf,
         AVDictionary *opt = NULL;
         AVIOContext  *out = NULL;
         int ret;
+        set_http_options(avf, &opt, hls);
         av_dict_set(&opt, "method", "DELETE", 0);
         ret = avf->io_open(avf, &out, path, AVIO_FLAG_WRITE, &opt);
         av_dict_free(&opt);
-- 
2.25.0





More information about the ffmpeg-devel mailing list