From patchwork Fri Jun 14 01:35:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 13530 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 D7786448A0F for ; Fri, 14 Jun 2019 04:41:58 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AE44E68A324; Fri, 14 Jun 2019 04:41:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0437D680891 for ; Fri, 14 Jun 2019 04:41:51 +0300 (EEST) Received: by mail-pl1-f193.google.com with SMTP id c14so300197plo.0 for ; Thu, 13 Jun 2019 18:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=N9qoz72i/njlexGjpy/ZxDaZq3VwaGxjEw7M7x7OR+U=; b=hLPrnppg2TJKQZ3rCsXpwHD9Mo7dKV4VxtM4vnAdnDwOf5+fy/MQa9FUVad69BJKlu JSOeA2/N6maHEfkgoGWSyq+5m9tWG9MtAqO3AkJQxpyFUSqMRHd+9q9dd14Blt58KIJk 9BK30WXn2BLbocQ6eRMU4ugDvMR1qNr4Bze7x3gDp3lMxep9IpzJOluSPiUpGn7awDVm mI70h1Lfhiqa+lv7Zo/p7PMGI1wBGvWF/9k+idbCxj+xzeJpIGmYGT3bQHpVLizKqloj EG/gO4j9m1wNgPLQgIqiTH+QgXAxEy4G2D/b3aYILsXXANJYPYWlLYiJHCRoSGtq+bCO Ae+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=N9qoz72i/njlexGjpy/ZxDaZq3VwaGxjEw7M7x7OR+U=; b=rq+uAsMBs2Qyj2SrLLACKdRomkcWVwRQYGIHI69yOJmx6jR2QLKaZmJyptI5n2eFes +hSd4VFRUq4zNJQQ7b7Ja4oksjeho3Ho8e3Js1yp6pe7uvtMonmY/NaCQ6b1+/SMizop dSsuP5heeroc+3wE0eqzgETF0CyaIrbExtFUy+kDanq/wIZ0qT9bF2f+ULTKxGluUuch 594QD2fDcG/n8AIgDcpYN1sC3CZ3qnhQcmAGw69IEdnFP2q5Mm0pGLCpwsJbZ2DK6YtQ GJfWhtIg2ZDkPH7RXOa/fkUSqWH4Na14B84xP+rv4SNGqZAyYohVBJXbnyCnbX4PJeep Xsmg== X-Gm-Message-State: APjAAAX7QR5za3lxLLKLPwM5uvCKMxEwjFfmUmk5dYrGjRlCrEqzwUwn Y8Z6x535secvOxS3pav3L6TpqrLw X-Google-Smtp-Source: APXvYqxi4mjNDfeGzzBBVhZTsnp+XZIHLJmaQGTlrCBkQQqiOfwShEWW5RHVmOxxI4QDyEWyG5LJIA== X-Received: by 2002:a17:902:a60d:: with SMTP id u13mr22120079plq.144.1560476158565; Thu, 13 Jun 2019 18:35:58 -0700 (PDT) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id p9sm981871pjo.26.2019.06.13.18.35.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 18:35:58 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Fri, 14 Jun 2019 09:35:50 +0800 Message-Id: <1560476150-5011-2-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1560476150-5011-1-git-send-email-mypopydev@gmail.com> References: <1560476150-5011-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 2/2] lavf/dashdec: Save and forward more avio options same as HLS demuxer 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: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao Save and forward more avio options same as HLS demuxer Signed-off-by: Jun Zhao --- libavformat/dashdec.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 2c50f23..446825d 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; + static const char * const opts[] = { + "headers", "http_proxy", "user_agent", "cookies", "referer", "rw_timeout", NULL }; + const char * const * opt = opts; uint8_t *buf = NULL; int ret = 0;