summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorSteven Liu <liuqi05@kuaishou.com>2021-07-20 11:05:49 +0800
committerSteven Liu <lq@chinaffmpeg.org>2021-08-19 18:24:12 +0800
commit5dc1b4b9979c84efc3b81bcb2c244e71e22a951a (patch)
treefe21d53e7d6ffe84bc16debc12fd8c2f5f8d38d4 /libavformat/hlsenc.c
parent79934cc702fe1c90bfb58bb83ab20490b9d86e37 (diff)
avformat/hlsenc: set http options before use delete http method
Fix ticket: 9338 Set options which set by user from parent options. Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 6447f9bf48..8cd938eb97 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -571,6 +571,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);