From patchwork Thu Sep 23 15:06:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30482 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp543875iob; Thu, 23 Sep 2021 08:07:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyddz1XffM+WBeaS4z9hoFAT9qvmTzH3YiPciJAdBJjF/UUlScDq/GrUVW1u/QIro1NJaL8 X-Received: by 2002:a50:be87:: with SMTP id b7mr5910972edk.333.1632409650529; Thu, 23 Sep 2021 08:07:30 -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 x17si5778478eds.602.2021.09.23.08.07.29; Thu, 23 Sep 2021 08:07:30 -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="MWcMA4R/"; 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 E68C168A7DD; Thu, 23 Sep 2021 18:07:24 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-oln040092075091.outbound.protection.outlook.com [40.92.75.91]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9A5E968A4C5 for ; Thu, 23 Sep 2021 18:07:18 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m0w1QqyepkoSlbxxi+v4rSkgJvp1xrn9Uj/tMLAp00D/Arn5T294lR+oR8bGsa3vWFeQSXfhiopc3GnzgtdrcgHj4Np0o9P1CaExmf9IxonEW5W29mhB7BPDj/+JoaL3PBVm6J12x1yG6kpuFaEFeAG2edryqRdH3Ilhz2ve6DHWkK6wgd+BOI1xqcgrMFswT2D1jAPnH9UhF+DSJSIRDVU4eQTUWCoFpHudZ++1P4nmt781opP+5vaJEdm1tXrf29K9sAbNb4Vd7Zgidm0NDoBN62SVSiDdnjFcSQMMV8wd5S3zC2D6wIual3HkgpytYuO7Wal6TLq8b9DHwJcS3Q== 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=4GjZfk8scY0J0BBgN0CB0lHO9n9yI4RYH3XkmuYPQ5A=; b=AGOvRv8z4CZ/Om165Zk1FtE57a9ruCS2OqNfwxDCMmib0s8wcH97Gj2MBT8JDp4EV3h73hwK0j1sadVsS+i7622BndVCUvEWOBXEWduRBm8oAPfgKfk7nMUxKJJpDzOS4nXFbj+sFjup3HVNOzCEyZl47+Y4AxbsqZithDVuKXBvp5cpCzR5laIZDOTiazPCEMx7bECk7BeUp5Ed/iMdLAbyPZpiTfA3twLyGJELPRqk2HuyrFS6Ujpl1pOsTw0yMDg0ty1PPZUdDF/6NfAWObORD32gsMqyogKR0LSesxGP8xvTdGwG4hSaiv2mK3vLiFedpMD+yMq6II4191yxsg== 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=4GjZfk8scY0J0BBgN0CB0lHO9n9yI4RYH3XkmuYPQ5A=; b=MWcMA4R/sMA8l7d3vgIwekDRZ9B4k9ZG3I8z28k3q+c0d9kmraq3fCQ8j4J+QOW49k/QFzR7aQuPbK7JDwKVXvXgnzE/bstUywvCcU0j7THsB+NzenrCQzcnY4xs0srvgS+DS3sGtGniPmPgqnP8sEG58fMEyJwQlHDRXrdqEO3e4+Ib9xiVhvUFnaBRj5u+jpFzUBnj09kM5DNwDbbtExCKbWLnHEN0g0fzTqhQNnFvP5EsuIH/791l4dciTJXLAEN/uHeuh6+GnH371VUWr5X7GXcNhHDug5xa4obKbs0S5CShxRxwoJ2aLKcBZIABSq2QrTnG09f6FlQaeLtTpQ== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM5PR03MB3009.eurprd03.prod.outlook.com (2603:10a6:206:18::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.18; Thu, 23 Sep 2021 15:07:16 +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:07:16 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Sep 2021 17:06:41 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 X-TMN: [dtoasygBZAqRQsKaEZ/o6lOPkCXPjlKQ] X-ClientProxiedBy: AM3PR07CA0081.eurprd07.prod.outlook.com (2603:10a6:207:6::15) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20210923150707.42786-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AM3PR07CA0081.eurprd07.prod.outlook.com (2603:10a6:207:6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.7 via Frontend Transport; Thu, 23 Sep 2021 15:07:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: de6f3b5f-ee5d-4a07-b664-08d97ea3d474 X-MS-Exchange-SLBlob-MailProps: f36zkjAOy3UuTYk0YBKgUpaEqMowN4GwiZkpA4+K7rLQbzMHP4Z58yRyArV6ERdBbLY0q24/Xya/72KSVDgZazOp2UUahmLElrsWq1MHj4zDZOuy/cmEsBXXXooOPNhAnioAcWO69E7CZ+8W6hCF6ozOEI5W0jka8xYkHLWzVt5rovJjM4dqA0v0wybkhi/Hrxs9sG8Lr1T+ydBxpcir48iB3w956lcSwRMpcPIO4fFn6gCO8DqFtdPqrwFP0j/0zFKRy7utEpYt4OnQHmYGr9oGB3K5ImasojZl3A2mxvgMh55xdlf+iht/36FU9jSnuDmC3vK/H08rDwE9l8ocwaeaPNQPdA+8B/uqyQvkDiNs4Lav0oRz9riIFMlKTC9JyV6M6DRSFFHhht/i8/l/J+rbu8FlMVaxUxJNBjIMOf3A4JYGX5Gfs1PoA2GbNyuaihUl3A3D4Bqoi7L/aJsXoFHkJN149Ovijh8ej4IreI/7cR+ehSF0wjg1jh8X4m5fe72qCpvL+LTqEVb2k1MzU4NrOv0yyU2vGi7vy6s/OMXpzkpLV+MfCQcg2BUkHe6F9n70o3Y1P2V7QbOaj5bq4x/Zz2BVdMHvjXUFHwM1FVLdHoVoCWcoemYVRTe/6q+By763/1uLwV49BVWe67Kmv+ORLofGNxWAdrSg43gNu+reEei4vy/cCTdH3ZknVZ4G9vfVORtKbe6HLR8IQl5g4xCpGH5nFvphrdTuzhpQtJs= X-MS-TrafficTypeDiagnostic: AM5PR03MB3009: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EKgJQ9U/izdnYq829+rAl1DbkTgT/ouUhzuqDLTUQe8b+l95dug7FDsmbhiptqWOr/NtApLqn81URS+IcEZm5aHElbUysTh+IOjM64r1Tc4h4VCbSwPgIeD9BFu76uhUQkgZeuUlrpIrIVz/wEwuSO91nKmW8QtxqhdnokApdeWdgf9PMilF0XmAw/fvZXE7DCPGwxtldn+vsrTg/wRv3qXYNIJrLLi5UdWEEgK7Unrh2uV2lRiT0rAQcagew20k1jVmDYR/AfKXdQC7l/M1okuXSpy9qACa4s5UpW36qyoYqgMijfehrPC8exrBs9FnLJIk74U6ieRHBnImiGQ+PmiD9Otd9uCT48GOIZ+SCNnZR4clpsJRnkxT1zpD+Jf+EFtBhgxtB+NhSP60DZPtCiiT8AwvsUwARWQDcmhW6dK5ZcPKYTd7aFZ7k12N+JAK X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mriyER6liVdrnF1XfoHRqHRGnpsKrE60u4YJuUsj2XD5+N0Rkqb643IzhJbKqB8jV0o9N4NwM3Fut9biHJ35L4KqVemWv4zHr87t/QkIIZt22BifkWCdmvFnK9EnpENxB5JPyC6wV6T++5S6ukw+Pg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: de6f3b5f-ee5d-4a07-b664-08d97ea3d474 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:07:16.3363 (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: AM5PR03MB3009 Subject: [FFmpeg-devel] [PATCH 01/27] avformat/astenc: Simplify 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: C0ZKtAqLI4ok Signed-off-by: Andreas Rheinhardt --- libavformat/astenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/astenc.c b/libavformat/astenc.c index cf75b48b21..a5792e0b07 100644 --- a/libavformat/astenc.c +++ b/libavformat/astenc.c @@ -118,9 +118,7 @@ static int ast_write_packet(AVFormatContext *s, AVPacket *pkt) avio_wb32(pb, size); /* Block size */ /* padding */ - avio_wb64(pb, 0); - avio_wb64(pb, 0); - avio_wb64(pb, 0); + ffio_fill(pb, 0, 24); avio_write(pb, pkt->data, pkt->size);