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>
pull/364/head
Steven Liu 3 years ago committed by Steven Liu
parent 79934cc702
commit 5dc1b4b997
  1. 1
      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);

Loading…
Cancel
Save