From patchwork Tue Nov 7 14:12:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riedl X-Patchwork-Id: 44549 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:7aa7:b0:181:818d:5e7f with SMTP id u39csp337787pzh; Tue, 7 Nov 2023 06:13:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBHf1yBTfYPTHMZy/lCb2cbxkS+gxhKF/VSZ0Lj2ravTS8dSecdsBGsMSNViCKDB/g9qdG X-Received: by 2002:a17:907:c9aa:b0:9da:de23:738e with SMTP id uj42-20020a170907c9aa00b009dade23738emr1950595ejc.37.1699366384549; Tue, 07 Nov 2023 06:13:04 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id ga39-20020a1709070c2700b0099bcfa1f75dsi1059767ejc.206.2023.11.07.06.12.59; Tue, 07 Nov 2023 06:13:04 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@nativewaves.onmicrosoft.com header.s=selector2-nativewaves-onmicrosoft-com header.b=Br5AWdRt; arc=fail (body hash mismatch); 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 23B9A68CAF4; Tue, 7 Nov 2023 16:12:52 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2071.outbound.protection.outlook.com [40.107.14.71]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1C72D68C78E for ; Tue, 7 Nov 2023 16:12:45 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aYvRGTwM3lFEE2jtvG4nA1NNIE8hfby/IvsSbgcODdKk27+pV2OZxYBT94G7Ty5vdHFCU2WQ7bvazDPhWK/mzaM6ZM7lIbIMLH1808lNhOagGoHmWSUya+zvSDx7nOrQ4un8odzdXy+9vHUu7IIAtSGEsdVzPVI6Xlo2ipbbXSUKBsA6yMj1AgophYEwxhbXc3d9I/y7BxNje9tiCZZXqQgkIU7DK/nf7TZvvMCphTg/pb3gAJ8do9Xdz3TxFiBWoLz8eiUOXiQiLEzAtMIkqnvP8PGt17WUEeM9dp0mfBhiWLWctop+jsRIqAe//u9l6zczA8XktOmQY4KBjOQ99w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ivoml0XBKy8NcsT2rbYFVkyPyYhTlG1dh3/HwN9dh/s=; b=eHNtTDZzAzmm6ypmrbC80X36kX0pxTNj6pD3g1CwTV8nj8cLAoVZlAHnFP8D5ADL4WFC2L8rDAllceL+bfPGMDEhvStVuZu0ZbdritpfaoUxsk5CPrC1styjvwQx/z27/Y1SpMujeBHO/JHoi9cm0VKT/emfACUr3NEDQIwMoZJoNmtdsk8jRRMZDn4tVD5l/56TuYYKZ35753W3J3v7NHjmhtRDjtN2A4zXytKCZs5vi2m4gMt2eLYDlVNW/7Tg6+7RKu5uBiPvof69aF+Z9D2pQI1koFvtCXNLABOK01t+S3p582PHm4S1YpuZrkCmrNnRtFIhmnDb0SjLrPuLyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nativewaves.com; dmarc=pass action=none header.from=nativewaves.com; dkim=pass header.d=nativewaves.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nativewaves.onmicrosoft.com; s=selector2-nativewaves-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ivoml0XBKy8NcsT2rbYFVkyPyYhTlG1dh3/HwN9dh/s=; b=Br5AWdRtAFIdFitXBUCH4rOwAgw/DuYLrk0IPScfnPUL02gkzIIcpobTrsWgY7IGm3GKM8RjpowxlKqaIs/OmnSl7x3FHI9qWRto+LpUd6WH2tQapGP0ZicI+BcK+0/HkYlL6pZluFdjAnzG/vesPXFMx2vmVHDPfC+KhQcwozQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nativewaves.com; Received: from VI1PR03MB4239.eurprd03.prod.outlook.com (2603:10a6:803:5f::26) by GV1PR03MB8333.eurprd03.prod.outlook.com (2603:10a6:150:61::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29; Tue, 7 Nov 2023 14:12:39 +0000 Received: from VI1PR03MB4239.eurprd03.prod.outlook.com ([fe80::150d:b41:699f:42b6]) by VI1PR03MB4239.eurprd03.prod.outlook.com ([fe80::150d:b41:699f:42b6%6]) with mapi id 15.20.6954.028; Tue, 7 Nov 2023 14:12:39 +0000 Message-ID: <74b2eb04-6ec8-4e20-930a-026793793186@nativewaves.com> Date: Tue, 7 Nov 2023 15:12:39 +0100 User-Agent: Mozilla Thunderbird From: Michael Riedl To: ffmpeg-devel@ffmpeg.org Content-Language: en-US X-ClientProxiedBy: ZR0P278CA0220.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:6a::22) To VI1PR03MB4239.eurprd03.prod.outlook.com (2603:10a6:803:5f::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR03MB4239:EE_|GV1PR03MB8333:EE_ X-MS-Office365-Filtering-Correlation-Id: 8f0d7367-7c3b-49ff-a882-08dbdf9b99d2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TGupOL1lpER8euoP/mhVBDa70ttqFq/2DhNDZUjEXqqGKxdlRz1hzuopTL7gkfclJNPsADWmC39LG088KD5KaFhm5tmsyQN5/d0C+jpM45MqigdwDdJACuzF62qzgYWGQwUQ4fGlwDsvKBOLEIA+iyPmUGFnZZIkYs1YavEo1VPGmLaKjDb4Kr5tKsuyerGsd/DFmWZd/7EVGOoQ81+IWAk3ZnXED/C7RTlePxeF9ODNMwORFX+RGqB5+Wyb2rDSHsCXpyBIiiioIkE4Z4SdS3SyicpPc0qJjPRMqW3oQ3t99Hn3IB9SaKzpcR/Nlzg1DG5bgPxfcQ/OLy5s+kEE2W+ohfM+02f2p4nExkX838de8yDwwMHiyXOlKNIMMH0kQhqNigFscQXaA68Nw4seDtIXOhjD0CZoZ1w6n+1/pHNGl828ysBeV1At8C1T7EEOz0vlYNmzwLV6Cs8Sxs2dDAL4QqQme/xKiBZ821BdhCSPUBhUsNZVQWHoVqtX27TNb/l0ZfVXwMbkss9STPtuL/ytdWowMZzvpuIGOKvJ1jw3RM5O7DrveXpN2OE2A8c/0zYMGcs7d5705w8WnvaHnu3sv0xGjNUKxrATjmpBFbStI6Ts2fqLj7xc1kN/H4Ya+rj2T65ISDWLxUFiC1jxJg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR03MB4239.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39830400003)(346002)(366004)(376002)(136003)(396003)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(6486002)(478600001)(66946007)(2616005)(66476007)(26005)(66556008)(6512007)(41300700001)(2906002)(6506007)(8936002)(6916009)(316002)(5660300002)(8676002)(44832011)(36756003)(31696002)(86362001)(83380400001)(38100700002)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?mUu9jRlBrwBTKwLN5kcj+ZBmP4xb?= =?utf-8?q?XcxFLqFCTPqsUbEtE8cF1WkWWrucOMRkkfKG+yQg3ueCqAqHIfiky9QO8Zsw72Pi9?= =?utf-8?q?cSIBv/bqmofNmtrrhUeOmWAhQdZUyS82QjEdnuy8KvezOcpcjdXDC9PRsFxTV0Y6H?= =?utf-8?q?5R3ixEov4gJSXKuWACN/yBgh9H85xmacJ5odjIXyt6765RtDTHbRkrXQF0X8UaXei?= =?utf-8?q?xwgmXIaa+JoZqJZ4IJ5zbpO3EOIAHUM9loikpQlOySOsMkvBD3ayWy0zx4E4h+DUn?= =?utf-8?q?70cpsZk4ijfGlDtMVwvIgehQmK3LPy7omBo+6egie1DsKsdM53SqMiJtX08Ft472d?= =?utf-8?q?Z/yqBMZgOXcGSFLithu3/2vm6vuKyJVo3Cx5snzrVkLpnsRnPvPoAhXxCbTdV2PV9?= =?utf-8?q?C3Llx0DxP7k1/RDEJfVm5IvsPZmxATM54hKrl2Fj0jesKamcdJOXhic+IwA8oYSaH?= =?utf-8?q?eld2BNSP89MJINosKTEnWtN2qw9SJbXBHZtJn2On9nydxPOlJoqPy7ZAs67bCP37D?= =?utf-8?q?TTIWhPUNOKweRVsOcKP/xnsQm7/3somaaQqOJX+cWOJKfdy35Op6aDTB0h1jJgPd6?= =?utf-8?q?3K0MqTug43xxGNN121HWBm577s4MpTuhRuR5slaMJxQWSa9P3EbE8CeM5kuFutMva?= =?utf-8?q?AeptADFFZiwkwei5qioEz0DFjS+h/XEc3IlDcLoRSFDs8/UtQPiDf5zbo7D5OzG5R?= =?utf-8?q?/EHxluuZpkb05WpIY58YFsWos0tk7M6DmZyd3XxHcn0xlv9NfrAi/EvO5guazFPCO?= =?utf-8?q?28fWTYteOTusHGo2TRONztb+njrDiayFAWw5aAmZItDjGVL/SsEt82uzfUsJ1fytu?= =?utf-8?q?aThxGZrgPT/fmi0ojhGN4m7gqrutxesfFZdhkvxlxkNTHmDIvVThM4izrbs6Xa/7a?= =?utf-8?q?vpdLVB93JWZgHNYC98LVcKe5kHRjWH6Gu/pM7z1vDHy+n2ysDRkj5SXb7Fe/7HR3P?= =?utf-8?q?iDdjeihyOqI9Cab3u90L9vTSg4rsbYkTf8HNVxGezyW7R/xS//d3VJlxl9866h3rE?= =?utf-8?q?Csci4cTx72nKr5odaqK8S7UkQZ6DGemyvkB6nv5cDesAuoTRl65cfJ40nL1G112ji?= =?utf-8?q?xtL5U/Ckgyb4hRNQ0IHonuQzVsZ86WZ6Oeo+gY/ioWQE73qy0AGH3CQ/1Ho3ikHQk?= =?utf-8?q?YEn/R1Zc7Gu4cD8pfQo9auSu87YdXlizqzRvkdJP5cZPJasGkhpWk5LGF5VsX6eCa?= =?utf-8?q?IRm04wdy5Vw7nLITX4knIZukGWdut9TCzjGEQSbZCf+bfYi0FF5yDHJJUdslvOZJP?= =?utf-8?q?9ksyISmu2MYAQbjMjCd/dLdnkz7lm53vwrnFz61nv5+sieaTTFGFS1Ksy1PHm2eYe?= =?utf-8?q?22085BVhYFz5EN5GnMtXWP/CsxJBlSgNIbR8lu6vlwlMKm2bm3vNNC1wzfRs+aHBg?= =?utf-8?q?uHO+Gi97IVQuOn7PsgjbCX3hwqcxb2pC6wEjNRir6KVvgTp85GzFifWbKBVn6Y/qc?= =?utf-8?q?O9sh58/qJ5fI1cC5mfa6YTxhsNFdD1aaPrOuKptlQsg/2+yy/pk8E/VtV6u6VTU/e?= =?utf-8?q?s+svO1plINkP6Mnzdrzy7ORxnKGazgyctydRlZE8ENbjiPXSjATKzm4=3D?= X-OriginatorOrg: nativewaves.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f0d7367-7c3b-49ff-a882-08dbdf9b99d2 X-MS-Exchange-CrossTenant-AuthSource: VI1PR03MB4239.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 14:12:39.8017 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e4239718-b000-4513-8314-02ef46bd0276 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +r+HhR5qS30gF9BeDHhfWP/7G4/HD7LToT/QNHxkdbj1TCzdFScQa66zqruudbK9OJO/pufEg1UFp9d0nvRB1zqQRRHyHt2XzcYRmMO1ePQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR03MB8333 Subject: [FFmpeg-devel] [PATCH v2 1/6] libavformat/http: expose actual Location header value 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: /FONcqMigPXc This is needed for (de)muxers which need to access the Location header as transmitted when no redirection happend. Signed-off-by: Michael Riedl --- libavformat/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/http.c b/libavformat/http.c index c0fe7c36d91..27f9c8e3000 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -166,6 +166,7 @@ static const AVOption options[] = { { "basic", "HTTP basic authentication", 0, AV_OPT_TYPE_CONST, { .i64 = HTTP_AUTH_BASIC }, 0, 0, D | E, "auth_type"}, { "send_expect_100", "Force sending an Expect: 100-continue header for POST", OFFSET(send_expect_100), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, E }, { "location", "The actual location of the data received", OFFSET(location), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D | E }, + { "new_location", "The location header value of the data received", OFFSET(new_location), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D }, { "offset", "initial byte offset", OFFSET(off), AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, INT64_MAX, D }, { "end_offset", "try to limit the request to bytes preceding this offset", OFFSET(end_off), AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, INT64_MAX, D }, { "method", "Override the HTTP method or set the expected HTTP method from a client", OFFSET(method), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D | E },