From patchwork Fri Mar 8 00:18:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 46877 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c995:b0:1a1:738b:6bc0 with SMTP id gy21csp624472pzb; Thu, 7 Mar 2024 16:23:28 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXBJR5WKymr6fp9COD+GClZ4JQzs1xuCia9K2Gi2LSs1/fZIK6dEJYCX1JjCSPS86LdL6NMFbOreAtjQH2b82FjOJ2dCTZqxy4W/A== X-Google-Smtp-Source: AGHT+IGY1xy9n2yRzeEbtsqcTu+q9Jq40tGRaIUEUiLiQn99/TD3jnZJbM0/ZsnpWaS5pKV5KZ67 X-Received: by 2002:a50:d702:0:b0:567:702d:ccb1 with SMTP id t2-20020a50d702000000b00567702dccb1mr890657edi.20.1709857408329; Thu, 07 Mar 2024 16:23:28 -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 b7-20020a05640202c700b0056812bfd6aesi1207930edx.587.2024.03.07.16.23.27; Thu, 07 Mar 2024 16:23:28 -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=@outlook.com header.s=selector1 header.b=tjpNUT6i; 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 7CFDE68CC60; Fri, 8 Mar 2024 02:23:24 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04olkn2023.outbound.protection.outlook.com [40.92.73.23]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6E01E68C74E for ; Fri, 8 Mar 2024 02:23:17 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E593tVxi/yq3c0S8h5h/VgEiBh7i/EXIzT0kG/TmiGfZz7scrCcBI3q9x04cKiWduzuQPM6Zz8sWf+lMagkjYR3MctJv40yxgmodq/Y5Jc+awpKIsSUzrRO6WURRjdzxs9P0mldpf0Sq6CZPfP4CUSGX8k7wTqzy70g71w82s8v8p9poPsFnSrxcIBWtwND1l/BzBsDZHHXguSas3sa7vSWPOCNIMp+c4WbrGB70yDZeVUxbuyg6lGhumaBhSrKtx2bj6Ix+wYXn75HONY+IGO6vR08Gb8pHUo82F9C+IAGsgr+koF3TByojPPSlB4vU0dD81MtKKqOSrwyCXaOlnQ== 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=Gpke/iZs4VV1wHW7440id5LBpl5c/Avg2+9NUNsymvU=; b=JI7r8/lZui6qVDSi4NNDXCI0JnhhA+riD2ZZJFtFcyoxPh55yLa5cLCe0hDAOYwKH6EAwADmHLhWi4UWUMpU3jM5BGu0pBm5VtnDPsBQA8itFYbEVIgNJHDHWrvNh1C3GA6kVOGX8vq+yRbfAODwCo4iZZ/MPEwJ0VfNlXpqenVo1L2vBi0LH4k/ud2AC6SqJK7SwwqnIlINYZOL16zalPG/5wV5ExOR0p8pkxGS1P7iKJ//uSHoLLIR7Q5/xyxCBuqkVva3n3m8KoIW0nQG6oOsojNt3fR2zgwjVf7RrsdvNYTjzIpux3btDZ6T91WEFLPHb2T7GyIY8X3UR7cEXw== 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=Gpke/iZs4VV1wHW7440id5LBpl5c/Avg2+9NUNsymvU=; b=tjpNUT6iEYd5SIBxZ7Q+HudSWBBclkcFv8xTBh+VTzwamSEDknj5O0XhVoOYd8FYag2x+a79wX2efHlrFUJcqbTdQAKq26WRpsGF4+ezr/qUZe2vjbL54XlHwzDXpoX27YVDjyMAi/YlYQ0otitxbgQJ/dkEsk9o6tJA/KaeX5j1bbYfQctsR+4913HStd2j5k8yYk0fpE0Psqbslfs4t21mRKKV4V9eUQCs9cO25nTR7R3OY9sgKGQ+UbiwAI0IzbJsVzCyi9b6nuUvWg/0N+StrS8gPbvTliY+fubnWEPdWtOcfXFK4y20oCd5yHQi9AcXwD32BwEU19C7E/UuBQ== Received: from GV1SPRMB0052.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:109::15) by AM8P250MB0229.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:324::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.24; Fri, 8 Mar 2024 00:23:15 +0000 Received: from GV1SPRMB0052.EURP250.PROD.OUTLOOK.COM ([fe80::a8f2:5082:22e4:8d1b]) by GV1SPRMB0052.EURP250.PROD.OUTLOOK.COM ([fe80::a8f2:5082:22e4:8d1b%5]) with mapi id 15.20.7339.035; Fri, 8 Mar 2024 00:23:15 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 8 Mar 2024 01:18:27 +0100 Message-ID: X-Mailer: git-send-email 2.40.1 X-TMN: [J5pPTCKhRV6mRd8rV3PMzLC8MKCg5pGP0zoVAIfxKPs=] X-ClientProxiedBy: ZR2P278CA0009.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:50::18) To GV1SPRMB0052.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:109::15) X-Microsoft-Original-Message-ID: <20240308001827.3757583-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1SPRMB0052:EE_|AM8P250MB0229:EE_ X-MS-Office365-Filtering-Correlation-Id: 8f444c8c-7393-4d1f-c615-08dc3f05f204 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s4FZnjrjErStBW5EGOaUY4zCp/pognImGHZwCfyP0gcNXKIWi+OD6SHkTpK3qgF6VFAC/uSDumLiKLsCWzR9HUkyr57cnjw+Ma6LUKk8WufKwSUO6gfAbfTkYuyMFQryUbmVv4JztibPg7/ANkB6kX4lzUssK8YftiCVwVz4qmAxDWXeUnvKv+SnvnCVL/HiYcV6UMIUYOkysgTBupoN7WcWFtjNl9n94BZXLoC7yWTRz1Jng8Hy20oNAV2K6L0YkY8Ycs9JIo8NFaknB8DsS2r2JYO7ahhbP2apwbTad6Pz9VibBzZYY4eAAhlq0zFGN6yyfWGB3IIqk9oa3zlnHXLNxrGCStUmrqVY6NAbltEOgjfidGXckN2Z9xHiGda1Iz7HM46eCXKMqv0OOUAF6Wu9d8xLLoxTtAkqx2ghyhg1+neWJk4oPwIo3vZ2x/frT9CO6ofsw/56S2GLF6tRl4/bk5tIi91dnKluS5YIFcP3tmmEVlrxHxCCP1/7idefgM0IL9PTvkiZOESsoVJoMhCtj1Gk3my+Hp1/yITubQDF6sIG/wOv7AhPiDNtUx6H479shoMJHIAjo3hLNDl4bTlUB8I6JXdER0eY2MyjnVwJi13TBunx8S7K1AA0G+I9 X-MS-Exchange-AntiSpam-MessageData-ChunkC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9rDfD6QybHgJw43d+73aco9uvZxTwQbWSK/3QnQQDZTJwT+FXwKWYJREn6MMIxtnG2BwHX64xQuC6o1cM3N08di4GrcsV5uIfJjc7iAREUdNgtItQSbA0vO0FozgG3mVg0l5M2TYYCGfZORVaegJs23JaJa/VsHoowT5jtF1Q1XMB+GlEgMnt0+K90QF3FWACOEhenmmOPqTi/tevbiainQhLtCHONmlg3K3bpcFjFq/nMzR94sLsN2GOsi79sxA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f444c8c-7393-4d1f-c615-08dc3f05f204 X-MS-Exchange-CrossTenant-AuthSource: GV1SPRMB0052.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2024 00:23:14.9669 (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: AM8P250MB0229 Subject: [FFmpeg-devel] [PATCH] avformat/tests/movenc: Constify write functions 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: 1L7ngmpi3lkl Forgotten in 2a68d945cd74265bb71c3d38b7a2e7f7d7e87be5. Signed-off-by: Andreas Rheinhardt --- Sorry for this. Will apply this soon to fix FATE. libavformat/tests/movenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index fca3213285..1ec9b6729b 100644 --- a/libavformat/tests/movenc.c +++ b/libavformat/tests/movenc.c @@ -96,7 +96,7 @@ static void reset_count_warnings(void) av_log_set_callback(av_log_default_callback); } -static int io_write(void *opaque, uint8_t *buf, int size) +static int io_write(void *opaque, const uint8_t *buf, int size) { out_size += size; av_md5_update(md5, buf, size); @@ -105,7 +105,7 @@ static int io_write(void *opaque, uint8_t *buf, int size) return size; } -static int io_write_data_type(void *opaque, uint8_t *buf, int size, +static int io_write_data_type(void *opaque, const uint8_t *buf, int size, enum AVIODataMarkerType type, int64_t time) { char timebuf[30], content[5] = { 0 };