From patchwork Mon Jun 3 09:03:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 13388 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 27CAE4483E0 for ; Mon, 3 Jun 2019 12:07:56 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0BC4068A16A; Mon, 3 Jun 2019 12:07:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1C869689D5F for ; Mon, 3 Jun 2019 12:07:48 +0300 (EEST) X-QQ-mid: bizesmtp23t1559552625tqasxjvk Received: from localhost (unknown [43.247.177.226]) by esmtp10.qq.com (ESMTP) with id ; Mon, 03 Jun 2019 17:03:44 +0800 (CST) X-QQ-SSF: 01100000002000K0ZPF1000A0000000 X-QQ-FEAT: E4g7lKGTFIBtgDA10EJUCQJzzORYvhj3ReaNAZfX6x9UGvVDHcuAUxRTXVNf5 vexPVpGVKZUWoT4rV+OpH1pO3+yAwNj+D3VkW2AIlL29ilMsIGRRKQsVzG+NE+xwdRfhWnH 5NzxBmeoN8Y6lYr5Z23jkddewBa7qTFMZAprtNlwfbICT9bst+4532gr2mSE0NL2G/EGhmG o25r12pQgJgm8wwKW0b+n8BeKBptZsskWIdJnVidPCT72ddD/IK3URnmiUia09ViKqfZfXG OwzMwt6tGxs5yqY0eYKQ/OqN3XPXclctl6FpaPTBBecRIT7u3du1C6QNc= X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Mon, 3 Jun 2019 17:03:41 +0800 Message-Id: <20190603090341.30975-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.17.2 (Apple Git-113) In-Reply-To: <20190603084104.30288-1-lq@chinaffmpeg.org> References: <20190603084104.30288-1-lq@chinaffmpeg.org> X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign4 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH v2] 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;