From patchwork Tue Aug 6 17:49:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 50913 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:810b:0:b0:489:2eb3:e4c4 with SMTP id n11csp93292vqg; Tue, 6 Aug 2024 10:56:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWRbiDXqbkxAyveB1NDezFAsufqtylDTIy+XqEnvp/COlguvdV9hlgBdydnxLfJdcRNi8CzHC+1CcsWTDYDMGnImafRpV2Ke14vLg== X-Google-Smtp-Source: AGHT+IF8R6cct1QVWF+F8tp1JEhuq8F8chUfWV4aHY65No1OWp3Nl5rmSrYL6VozuZSfH5M24dE1 X-Received: by 2002:a17:907:9619:b0:a7a:a763:843a with SMTP id a640c23a62f3a-a7dc5018a2emr1288500966b.19.1722966968413; Tue, 06 Aug 2024 10:56:08 -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 a640c23a62f3a-a7dc9f2b2c8si598098166b.811.2024.08.06.10.56.08; Tue, 06 Aug 2024 10:56:08 -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=ehleZSmA; 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 EE10168D973; Tue, 6 Aug 2024 20:50:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2078.outbound.protection.outlook.com [40.92.89.78]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A941A68D973 for ; Tue, 6 Aug 2024 20:50:09 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s5aiAUoc3CoeVi/y2N7kW4jxmf4Xq0CxmMGLYg6s+dytqEUSw7S4jS5cyYFTzDom8gNue0K/MNXrQil6DuChlqAIZnrIHTURwy7FqjLw3k+CHmzsAVmBN7R+ngXShSqF6Tk8bGkE99t5W/UtKE6GYN0wnZRjYnI4QJak0++D408+x9wcelg1DQd6j0KMeSq1ymzDgqEhmzC89Tdp5OeQvUEm/4ZbAxepB1Z+L245X0ARHFefWSJqOi5CDJWW/Dw3IncXniOxligkmgabNwqOQs63tjZ3biKw4K9N8BeVIKT4Vg+50cgj73kXBfkHfJvqXjZs88wJLIwMFk6Afme0uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=0WND8B2nVWh9ZF3X+ObgDftFgp3p5p7VsMS+Z5zRF2M=; b=tQalsB7WuTu1d1nwWNVh+mfgMxxNxhkJysXfEO023HIEMBxaiXKaIMovtXRH2tY0pxU6JDrFweM2TVX9KO8qa04IGfzapzimlEnnYxWitFt8bQjFzkNFJePCmeARyLolzlD+dnXcPFWGciD7zAGzm9Qk3Qi342aG74l60dCs+APQ9B4WTFyJWUfOH3xqWfEcJaJD1SbySsfpvoknoh9KpjAKjOk4Yso3HiJqACJpIT8vFxPGlRSgvAzLGrQTSLUFHY8dTL2BGz3c4NQLFc5qIbB3xunluBlG+G1eXEo4IBxz+/VXCAecBleJry8lOS9Uj7CsxC3A7RhAgN2pGY+VSw== 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=0WND8B2nVWh9ZF3X+ObgDftFgp3p5p7VsMS+Z5zRF2M=; b=ehleZSmAc+StnBjHArvkkcZUXlpQbjVpNpGmF71uem1zOE8vszvQ8FtOEa7GgfIn5KijpQLiRr5IisE0MhYSFqDtP3dyQ7GWMNK+NpuebCTfTj+RDxnQhtPVVwYiI5p7rUDQsJ1M9VQf8/0nJ6QjrV/omk/ACLAbjyighmFYct+jSzBNrKNuDgwCMxMYxe79krumaEvAHTkjo+LOYG22tB5Afrbpj1fz0uP0nBdx7PlKAZ4guBGZgaHRhOvxDgKqXvGofo7o0sift5uF32rj2CyF6oYCRR11pYEXP2mEEcDb126Usc7CWLClvsSBdbDup4Fevvi8S+x6lK6g7MWiYg== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AM8P250MB0325.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:328::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.27; Tue, 6 Aug 2024 17:50:06 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::384d:40d4:ecb7:1c9]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::384d:40d4:ecb7:1c9%3]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 17:50:06 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Tue, 6 Aug 2024 19:49:57 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 X-TMN: [VA2bD0UWZslyrt/TBP7+5RwhAhyjYyNgxnVlDwiJxCA=] X-ClientProxiedBy: ZR0P278CA0078.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::11) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240806174957.3954286-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AM8P250MB0325:EE_ X-MS-Office365-Filtering-Correlation-Id: 10a2c687-0954-406a-1556-08dcb6403524 X-Microsoft-Antispam: BCL:0; ARA:14566002|8060799006|461199028|5072599009|19110799003|3412199025|440099028|1710799026; X-Microsoft-Antispam-Message-Info: 5YuWIMehnMymf5BLzxZ8F7L8J7IJxf/l6BaG5hR8cNRr2caqbUtuCJIdyhEyE2pVz0OB0n7dnZxMUez5g/bcc4dKu/W03ZIlDKB+XPYezdHIR0A+cmO3P81jBd5LoTPwqZy5xWSl496QigCFufhTRwdZAU+dLnYjlpKA5lGDXHHOfqeOawXT3eAcvyaVaDNYwXiUJrGyz8M9z5BVcjHJEKwYYDCtaYV2LWDiWAzS88QxSPpEcjtDKE+FCIRs3okpc9iyJiA/F2ioOxyur301AqfoiMy77MY2KkA0s2GeuWYcrXZjYBgDg3BdjWKA6rwKFlaiyRlllTENdwOwOJtx0td8PCn1UxyWyQiCjzTMn4U7FdiflistfEp1EH4flxmpZczm6bH8bIxbCHobhPMuJz5+j47k5QL9rcYmzxVl4kK7PlosaNp8yWw9RpvhZH2LaHiMYZtUhFvcbzK4QEB1k1CwGqie2jPPj86weUtS4tttguqA6mhQetZxvJrOna9kmMZnLRfHxZW4T2x5ddk+1tXDiJPgzqBRxK7jJixnaSEtg5d/Wr/wI02Qo9DgdxzUats8YIVO6oAZB7xDV/btQTODIena+0WYEbDT0xXMVr2YPNVHj1IKYkrwxXFIfKEaRys55GAIoZ/HV+AzN2kntrYd++a3s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qUxSv7KljFGQJMXGfAgbtZfGzkfKqXGnETxzMzsQZIKl5Wb+Nhd6iP+c+19UgJvJ3mAne8/QgvXBOdtS4HIwmU8fzS8UrKF5CIZICqpZv5rCgwobC/GFbHJa42ohuxjzWT4Sfd25JSI1youjcgF3ZRcrDrvADzJfG51vO91USEY9kW21gI4i5+AaO2EnQgITZXplEEBXv57UuA4SzodKEN6tlo8qDX2F3cIsJzuE6R+40aQ/WFWvI1rNxlicRr9rQoeJfuxbiSVd/tIMvPuQXyeFob3Mhf2MsYbdCC19IY1RTM3soi/0rp3xFcS0+gDN6j7akKNKLWykNbDMfntkT8sf4j6GIA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10a2c687-0954-406a-1556-08dcb6403524 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 17:50:06.8393 (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: AM8P250MB0325 Subject: [FFmpeg-devel] [PATCH] avcodec/cbs_sei: Always zero-initialize SEI payload 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: cbvlhfkH6eJM Signed-off-by: Andreas Rheinhardt --- libavcodec/cbs_sei.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/cbs_sei.c b/libavcodec/cbs_sei.c index eefa07cf00..458751d92e 100644 --- a/libavcodec/cbs_sei.c +++ b/libavcodec/cbs_sei.c @@ -41,7 +41,6 @@ int ff_cbs_sei_alloc_message_payload(SEIRawMessage *message, const SEIMessageTypeDescriptor *desc) { void (*free_func)(FFRefStructOpaque, void*); - unsigned flags = 0; av_assert0(message->payload == NULL && message->payload_ref == NULL); @@ -53,10 +52,9 @@ int ff_cbs_sei_alloc_message_payload(SEIRawMessage *message, free_func = &cbs_free_user_data_unregistered; else { free_func = NULL; - flags = FF_REFSTRUCT_FLAG_NO_ZEROING; } - message->payload_ref = ff_refstruct_alloc_ext(desc->size, flags, + message->payload_ref = ff_refstruct_alloc_ext(desc->size, 0, NULL, free_func); if (!message->payload_ref) return AVERROR(ENOMEM);