From patchwork Mon Jun 3 08:41:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 13387 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 1B87F447026 for ; Mon, 3 Jun 2019 11:44:33 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id ED2BB689D5F; Mon, 3 Jun 2019 11:44:32 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbg202.qq.com (smtpbg202.qq.com [184.105.206.29]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AC29E689D1C for ; Mon, 3 Jun 2019 11:44:24 +0300 (EEST) X-QQ-mid: bizesmtp24t1559551267t52vc3jw Received: from localhost (unknown [43.247.177.226]) by esmtp10.qq.com (ESMTP) with id ; Mon, 03 Jun 2019 16:41:05 +0800 (CST) X-QQ-SSF: 01100000002000K0ZPF1B00A0000000 X-QQ-FEAT: KUwEAeKIQQnl+EuGsC9jhy8uJzwPAyPljwc62CevlbXksfAzQSLKtpFzEZcBP XsRuVKBd6N7C33CBj/YFDa5Bl0wqwu5WWBD22TQjn1U4JqKSNJI2BxzcYcXl3lSWY1SUswq G2e6ioQURm7pXAYRL0k29NSWQ372DIFBJBvE+MexKwS9cwob/pe8n5z9n9nuDtv6vMiV8Di 6WoyBP9CHWixmOJvg6++oJMVVNG0hp1VJlnC6fDP1G22hQb/Udq20H4ZYqt4WRih/QOn7pY F2KBDKn4gLkQpx8yYyOHLAFpoz3qWL6eg64+4KGe2/On4jA+8NLv0oq+Y= X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Mon, 3 Jun 2019 16:41:04 +0800 Message-Id: <20190603084104.30288-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.17.2 (Apple Git-113) X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avformat/dashdec: add http_proxy, referer and rw_timeout http method support for segments X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Steven Liu --- libavformat/dashdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 2c50f23c06..315dcae651 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1834,7 +1834,9 @@ end: static int save_avio_options(AVFormatContext *s) { DASHContext *c = s->priv_data; - const char *opts[] = { "headers", "user_agent", "cookies", NULL }, **opt = opts; + const char *opts[] = { + "headers", "user_agent", "cookies", "http_proxy", "referer", "rw_timeout", NULL }, + const char **opt = opts; uint8_t *buf = NULL; int ret = 0;