From patchwork Tue Jul 20 03:05:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Liu X-Patchwork-Id: 28981 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a5d:965a:0:0:0:0:0 with SMTP id d26csp4958105ios; Mon, 19 Jul 2021 20:06:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLX9/L/LbF3kOQkmn02ETaLF+AC1XYn8NPgukJ5nYb65y5J/Z3gyRAUJ/a/VIzbE2FfgJN X-Received: by 2002:a17:906:8558:: with SMTP id h24mr30616736ejy.519.1626750383372; Mon, 19 Jul 2021 20:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626750383; cv=none; d=google.com; s=arc-20160816; b=NjVIZ4UBYWA9Mz0XY8vldmTB2ro0jv+heQroybiP5c3B9k91aoaVMLurcNNLnvKXaA ImAHmCzxyzm7hzxIlVLaqVPluRi5NPaFHgdYWJySSiWFxS9rZOAlwgbSoyyAgAL108js oS1rXzKmMGKsFct+MZbjkL2sFYhKZK05pRfHEs/UMAcdkfoHRBKxKM+Y3lOoFeuHTY3k fBnn9kKi8OiLxxIfcnbYFP2Bs9gDU6TWavrEnlrIAHjDvMUOTQpSRjxLdP9OzRF1ShWq XF6ujMZ/Fpdh8P6zlsCyQulVH/7r2umz0rRFth0yLqid5GN3U4xJWO59GVbNJISFD0tm fVGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:mime-version:message-id:date :to:from:delivered-to; bh=lNLaqS8KZl6Vr+noRZjJ12GdAC2KC0S3Pd+3E5eJ38M=; b=ZUnkkFOMpZDzyMKSDV8DtMK9OLR4FcpBWYBUHs6tO21CvtQ7A7wDM7t7x0QFkuQx+j pKqTwdpMj2vpDq4jyFIEEdFBCn1gGTc6VvcLPQOW3w2oNuRQ4wHmU325r1l8TyAkBPPU Je9SNNiF+RkZ8ztaQ90Du4ffgEd7YiLjyuVqoSZOtYEkw6cy9cVQfSBoC+Hy8LL9A9U/ 77RRDh05DF8twB6H7EpqF0EafJ2wrttHu5aa3wVBcZmVLRB6VkUGpHpl7sdMlMefGrd6 OE+IMd7p+tGUzBmu3yfVaz+yk6f8HCFAn1zJ8Yau/rHknEcGAa0O9bdWJfBN8LYb8Oqh FRYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kuaishou.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id cm16si21598609edb.411.2021.07.19.20.06.23; Mon, 19 Jul 2021 20:06:23 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kuaishou.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0D15068A963; Tue, 20 Jul 2021 06:06:20 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4CAEF68A407 for ; Tue, 20 Jul 2021 06:06:10 +0300 (EEST) X-QQ-mid: bizesmtp36t1626750351t5djnnu4 Received: from localhost (unknown [103.107.216.231]) by esmtp6.qq.com (ESMTP) with id ; Tue, 20 Jul 2021 11:05:50 +0800 (CST) X-QQ-SSF: 01100000001000Z0Z000B00A0020000 X-QQ-FEAT: E/Y5faBpNlsrtDkYd8N4UUc5yXzIxFNExCLviMWeyogJzUwRTiZN5jglntT8Y Pwv3h9oZw6F8mb2I0QmOcw4XkWxYjO72zRFCb2/H8gj5RJmQ5Kpkrgm1izmRZRYnEM5biLC Ew6B6pDsQM/CWFy83nZ9qk36SOWfSHeDoT2XmNWJB58551Z0f5qK3Nkb26zn95zd1+nfxSb H1CIJA+Hu9HXJFxDnyr8AZsYp1CHOkpvrUZVVNmsV2WETXrbeRv7APBSLyYs0398Otwwj9I 2v/s1ghzfCoLkHT/T4qPMIvtCaMIrHq/spNGK4yWphY6pDXYkpJu7cr8eQ7EhbxZV4435a+ PrFK4D+ X-QQ-GoodBg: 0 X-QQ-CSender: lq@chinaffmpeg.org From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Tue, 20 Jul 2021 11:05:49 +0800 Message-Id: <20210720030549.30390-1-liuqi05@kuaishou.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign6 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avformat/hlsenc: set http options before use delete http method X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 9uQ9pubLsFN/ Fix ticket: 9338 Set options which set by user from parent options. Signed-off-by: Steven Liu --- 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);