From patchwork Thu Sep 23 15:29:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30494 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp569904iob; Thu, 23 Sep 2021 08:34:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWCcWzYo5vrdCvpayGn5Iio6MqarMn4JpleWPSyR+afthaC9C2P8PEsJmX0xtJ5HCUw7gy X-Received: by 2002:a17:907:2642:: with SMTP id ar2mr5852398ejc.97.1632411243899; Thu, 23 Sep 2021 08:34:03 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a4si6522585ejj.105.2021.09.23.08.34.03; Thu, 23 Sep 2021 08:34:03 -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; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=rFtqT18S; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 36E9468AF1B; Thu, 23 Sep 2021 18:30:26 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-oln040092073069.outbound.protection.outlook.com [40.92.73.69]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6B8CE68AF11 for ; Thu, 23 Sep 2021 18:30:23 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZikT4jtlnNbR+wJEYpMJ6K8tYV6qEIf5nnfkkJcv31qAMtXc3ZByKKqe0zn2oVDcg4PXTZEvYgWBvFPRTyvUVaCi28cyUypl9bX7CVroSEVWzbaZd0Pj0KB4WJmJ0lBbqr4/yxfeaY5gfY7BgDVHaKq1q9s69ZSGBinpBOipIcRxJgzL6ds/pXRngb5VfnND5DdZUflmyCqEhVT7tI9rbZwDFDT6z+h6xYlonnNYv1O7H/sUDC5QUJjEI8gCj7b4uy3canG9bPPkbnjDwX3jRQKVxNSSVxSiegF9+QfgfHImSTxfLuUkEEE21W/K24Acin3r4kpT+iOSDAwYfMjfQQ== 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; bh=6XYLzl0vy5xJHGA73926jsnAXhszhG7A7nJyaL9viqU=; b=KE9SKwQMyo2X7pHnJ0Kf63G7KLj+ASI6HsaKjus7Ve9Q9qlXDwAbiOxaYWdVUxcNy8EhvF0RrTA6kyR9G34DfT5VeMz5qXQSTuKaijxKGSSOq6z9oL9mhF7jmNM/T4wE43G5GsBtVTh+7fqtm7inuQloYLBtoVIlodK8RHlR6EbM6+EjXzBw6bBu+GuSzSqy2kRLFd1Tczd7tsyoQBemH+/0hl16FjR34ohgDYWIDMYYru3/GSXKEhGAO4TXjXN8DiSi4+8gh3BjTkTRey4uNttl+wKZA5bThlb4UlL3nGE2KpHxYhcrsuzPf75zmUGibCmguwtD14tJmzEoBFTjrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6XYLzl0vy5xJHGA73926jsnAXhszhG7A7nJyaL9viqU=; b=rFtqT18SXI11Yacm+ACpVHu0kNUuzXRh8KgXu84lxrWPv212Wt9xN/cSG6hspQ5rtFUQxyvKO6Nrvbj2ht0Jvt+hh/QpCtMsYVcyt6IsPOOZZqB4tC+3dLgPt2SIvkI/ILlZc3lRDMm1HeRRY7hooq7o4iPCzBR/HJJnR2rpIfC3WtCY7Ir8Osy9Z7T3fE4P4MvwYhLGtAM3N6Bvy+nNGx0Hf7Oz1bPRTUSHw5BfaU6NMqxXWXD8obJijZK82TamOeJfhZyZBcWQjnpHQ0rrikY/L66BKalOGNOxXU5/HNyAoyPFtFmmZLpkpZt7o/h62UZEU+oP08PfMZN5dVMgew== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM6PR03MB5172.eurprd03.prod.outlook.com (2603:10a6:20b:c1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.15; Thu, 23 Sep 2021 15:30:20 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::787b:2156:ca99:fe00]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::787b:2156:ca99:fe00%3]) with mapi id 15.20.4523.021; Thu, 23 Sep 2021 15:30:20 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Sep 2021 17:29:02 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [JVDmP2evzIcaX0K7SM59150Xfkgv0E3u] X-ClientProxiedBy: AM0PR06CA0106.eurprd06.prod.outlook.com (2603:10a6:208:fa::47) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20210923152902.42865-26-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AM0PR06CA0106.eurprd06.prod.outlook.com (2603:10a6:208:fa::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Thu, 23 Sep 2021 15:30:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 08a75c41-7c94-4185-3cbc-08d97ea70d89 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/ULYlaWyz2NXCnwh7Enrihvqi3sjs3Z20tDr40cXCDgyA95BnrJz7g+Q2K5XBJF9DWj/QzREaESUHXDyuz40kYheySY5032nQKXAYz7U+Xq563RmpGX6UYA7wrusP/DKQpmGD+ArfHbkBGUHlqowG2sHVkYg9BX97IV5wE5gbzG6uSQ60jlgMKAFTOB56v9pZn0cp/FEA89HAraw/QlQR6m5jrWRSWDPxTL4kRDapTjbe/ltwHlYHxTQOs5zRCLlGnSr2r1j04g3FFQvJwvjkMfiV3VbYNXb2an6eRoWd3IIygfVQvNuCUWAzPxQWc21JBrc8cJTWPDbOsiKwrtCvz5dGZNtVuLxRfwxOInoplfcn01ofbk16QrDkXnwfZlqBoEch5jQbhLhTgnfR/UYQ35p+Dx/o94gWJ3SsTtQsxUvwCAwXiUwj1aR9flN1IWMnnxcDlMSlmkNH32gg1NZDftoPLGhJvJ7ANx5ZrfCzZ5v/J/gfwhGggdZPgHAiEogmqKqQncLTMtWZ0yINs2wCGICqhYNOg2ZZAz3hgWPBcMCXSfkDTmYdCSzZ5GbJT+R5CWyrE7dmgEQxfEmI10Eji+LMCOTysGIFBTpohDdw/hPf6rkJRp4spMVUywHQsioHimXlO1OPE9OJT33IVqE8VbNFxjD0yjsIBlhKbRssNfd1OyviQgFeYLoBNNjZMXHlYgHM6OPICd3qQ== X-MS-TrafficTypeDiagnostic: AM6PR03MB5172: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ALYTGTudN9+7owR9INOjFhE1HU+cL3ITfip9NKhovj5WV7+vI0GOvDvs1uUZRiTkESdM71zCw0zued9alToqVakx1pqW3dEFip6+Y00PXhdWW027ZaJrXay7BbR+58I79o5pnXTa4M5QFzHthipd2huhxC1zeUbrBTLDMmSwLH81CQJbZxfaD3WfdsBOGDPDYGpJqxzMfIij+hDNH71aLvPdm7CPRGoi9kgdb67X+F1sXyC2bO7rceomgPgIE4qUgBHF9F/fw/Cg1oCQnNmdERCMK+XtBezmZHwC0bs6ZofDBTg2rWP3Vh4P6DH17QymDhZmsgU2FOJ6nw4vybJRAps2MK/sZb9wjPASZK6Xm1iBPSinDZP6R9LAUPMge9yhgSnwHBWSg1ACiqO1NzwxhFQQYiq4697CqakUR+ZYnb38tiAGIpMIe6P39c/xtI4B X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YPwW/wuh/bfk8GlR8EEqTInH2dUb7+gtejFvE+Y+qKo2Oec+TnIOGdsb5Ys+NkoFC2TI43wk6S+mR5KoZrffFBMNQcJJmcBrT+IwZSrbtEGaIv+rfLVg389JVPg0j4KfWanmySk/vOS2mMeL+Inq+A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08a75c41-7c94-4185-3cbc-08d97ea70d89 X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2021 15:30:20.3462 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR03MB5172 Subject: [FFmpeg-devel] [PATCH 27/27] avformat/mxfenc: Simplfy writing padding 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: BIaeOX4RhsEN Signed-off-by: Andreas Rheinhardt --- libavformat/mxfenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index f37606ed89..56facbe4b7 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -965,7 +965,6 @@ static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, MXF { MXFContext *mxf = s->priv_data; AVIOContext *pb = s->pb; - int i; mxf_write_metadata_key(pb, 0x011100); PRINT_KEY(s, "sturctural component key", pb->buf_ptr - 16); @@ -985,8 +984,7 @@ static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, MXF // write source package uid, end of the reference mxf_write_local_tag(s, 32, 0x1101); if (!package->ref) { - for (i = 0; i < 4; i++) - avio_wb64(pb, 0); + ffio_fill(pb, 0, 32); } else mxf_write_umid(s, package->ref->instance);