mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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>
This commit is contained in:
parent
79934cc702
commit
5dc1b4b997
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user