From patchwork Sun Feb 18 01:43:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 46331 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:dda5:b0:19e:cdac:8cce with SMTP id kw37csp553394pzb; Sat, 17 Feb 2024 17:42:01 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXVY2f6nkpQGQaSh5qDOIccTEMreX8wyp7Vkb3gSSyhZ1bl3XDcEpnhG0hmqTe1H5PbSPlMHzTbDCtGRt8stmErHTunEDUQBCtqew== X-Google-Smtp-Source: AGHT+IGdr7Gzhinmm03aMbZNCGfZcVSVOlYV3LIevyFAMU4qUfWk3/LYabAedASCA+OnL01CyO7B X-Received: by 2002:aa7:cccd:0:b0:564:4e61:76cf with SMTP id y13-20020aa7cccd000000b005644e6176cfmr436667edt.10.1708220521189; Sat, 17 Feb 2024 17:42:01 -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 ch25-20020a0564021bd900b0056410009311si1303438edb.112.2024.02.17.17.42.00; Sat, 17 Feb 2024 17:42:01 -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=ihD+JFaH; 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 1A85C68D325; Sun, 18 Feb 2024 03:41:40 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2097.outbound.protection.outlook.com [40.92.74.97]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1612A68D314 for ; Sun, 18 Feb 2024 03:41:37 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UDE7owit0JzpzddyKWz22L7mrNwwQkUXJ7n6PoY4Xuh2DZ0cNj4LGefKfVTAAo3FJDwDdyEYkbQ79qM0nICTFjKYZAar2GvpqicmrT+hY8VYspsuluu+BwMKzmtg+t6FQ7P/5oI7INWhjnceSRCaavwHgteUKorfuYx41mZkVFbXuCIEfBl7kmRVYSzerROOHNnG6uZWi6EhZ1wMY/zoAbcOOraAzLTy9lLqFEYqVyNzT5KvijBNUGNWAFKLGuuJ9AzMJGX+NUu2Z6NQ0TX1+9IuHRVG50H6BkFLc2KrqFbTEdtvLRZtZZzsj3ojEElc6Y55hliMbVSd2Yclt7dVEg== 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=5Gqff2zTPxd5/PvHSevZBMGa8A/c2VgYEoZkpIGlDMk=; b=F+3DCWRAeOvL1xX1RlOi+7GLYlT4zKinYsKotMEJXgc9vmapHOJTQXihCjoLgs5Ecbu6+D5RuUMFE3p4Ip2Q2sN2NJbL4J5bNSaz5WcwpGYytqxcMtWQmGh4ebzBPk9t9AOxHXQqb2O0JTRUZy9jDgVE60mm4vSZ8UuQBkyuqMX30lW4nanT65WBjfz0G71uWEcgvXHE/5jGwr3fOtv2sUHiNLPOsR5vSPnZAGfT2BjfIzC4fkrAONmbsEVUJZ5pJAKl2wJVE15EuC1DmFctfwY1LhkYUeqQZ9IkjTydZB10tpogShzm1mVaKn81j3Qx8PVonUq/RSvpYu1MyD39PQ== 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=5Gqff2zTPxd5/PvHSevZBMGa8A/c2VgYEoZkpIGlDMk=; b=ihD+JFaH2Fh45pWJ/3SheZ7qMPx3RL+umsKrroQbjWNZnxmKzYwabHigSb8kOMONrt4i2FVL0LzGF2B7Agc6IGSrzpeLOtW7eS1DiE+Te/lcGGeYt+nFCjdeXr+VRltddR/1hjgefaPAgB/KKdK8ow7qlof5S4+x4gOw2A34c1f1yUfOqMaYgF10QTuEx9r6O49euUpCmigUGW4cBohGDB+wRZtae5J33RCtMCLHeb1VOqJyQU0r0WlNU8v9OtNgJaeYnQbIbXqwZOrbLzzW8+Po6emGlAmiFxmLUaJWbhnwGAf8RA9n46wsS0K/7wpexnowgasy1CAWPjCqs4u13A== Received: from GV1SPRMB0063.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:109::7) by DU2P250MB0319.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:27c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.32; Sun, 18 Feb 2024 01:41:26 +0000 Received: from GV1SPRMB0063.EURP250.PROD.OUTLOOK.COM ([fe80::ffe3:46c:6214:2504]) by GV1SPRMB0063.EURP250.PROD.OUTLOOK.COM ([fe80::ffe3:46c:6214:2504%6]) with mapi id 15.20.7292.026; Sun, 18 Feb 2024 01:41:26 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 18 Feb 2024 02:43:07 +0100 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [yTFaMgtfGQ0X3undf0a6PB3jXORBvG6xr0c9ycDCi3I=] X-ClientProxiedBy: FR3P281CA0033.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1c::12) To GV1SPRMB0063.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:109::7) X-Microsoft-Original-Message-ID: <20240218014308.2819410-5-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1SPRMB0063:EE_|DU2P250MB0319:EE_ X-MS-Office365-Filtering-Correlation-Id: 03c25304-86b6-4ac6-6204-08dc3022b8c5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PA+wgZLY5ftbt5SAmmVlbAmiAjC4PFbCbsV7AmRh+8g/b8zQhBoFdgbCQICiIqVFDWoBeFMJimk0v1YhJ1nnqyw+0y6Ts8kdDLa6/Mm2vMifCjDxpiDHZn9RQdS14b5RM2IMmA/bzwIIp5XIIYTnTgWH9CI8ti1bhobLB7I/9v/hu5lnuQzMEeOxeA4h4uX8lkYbGVn8tVvhAsK2rr0TZ7/yfXOZsWFXgLETzN4DEwQMJ8BOg8EJW0pLHpla+p2sLBWiw8CeT5ofYg0SS9UMJRp3VauFv4DYgsgPooYu5AEGbuPlh+cjgJdYlQq9mRofjh42NODeRehaDa/B0N/pxBDhM+SxzMQiPonLB6bfFbT0MmDQKG8O6ct3o8Q2hZunLymtVniJiTkTgKcSS/b8vho1wQ1TceOgkGx4fO3TJ5JJuJD3OZRB1TE1lt+5M7NKm5dxhsWESvbFgM5s/agKP1irP3AgFnN2oMj2kPeh8/wGND7aYRkU99sd5kVtE4Lc2tWUvBrkjCr+h4nFZwm3JEFZZfPUKthKeknUSdsHysQWOQUL+8gCkJ3mx7nhBd00lH6qPToxJz5He4ZWnyHjHBKurdlBLt2f3Vq8AbVIYrJiE43LEELFBFgdkXax2PBZ X-MS-Exchange-AntiS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8ng1nM0zIFjk+tiVJricUqdB0lIKWiDH2lQ1PzStnf7OUZKZV5m6KnKAOmKVYg4ZFW1tLsC37VNMg01qtRFt8uNMHcMat+knz8zQSQLm7ycFchGAuo+8Gvt6QmzM6vTGgI7yhccTCvazuMSCtQau4pnS7ReLTO8nGgzJauKXeVqK7mC7eVtlWKWRErNSpUZ4Bk9qoPzGxR6TkY/c5ompMmgulmv5XtEMX75EAD6QzXADxv4LuEgmFsW4hDv7oi7iGG0vPps89RoNBfEMQxLqND7Yw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 03c25304-86b6-4ac6-6204-08dc3022b8c5 X-MS-Exchange-CrossTenant-AuthSource: GV1SPRMB0063.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 01:41:26.8495 (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: DU2P250MB0319 Subject: [FFmpeg-devel] [PATCH 6/7] avcodec/srtenc, webvttenc: Use av_printf_format 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: 5Rw+pvAl1sqQ Signed-off-by: Andreas Rheinhardt --- libavcodec/srtenc.c | 5 +---- libavcodec/webvttenc.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/libavcodec/srtenc.c b/libavcodec/srtenc.c index 9b6f61ebd1..a607beb990 100644 --- a/libavcodec/srtenc.c +++ b/libavcodec/srtenc.c @@ -41,10 +41,7 @@ typedef struct { } SRTContext; -#ifdef __GNUC__ -__attribute__ ((__format__ (__printf__, 2, 3))) -#endif -static void srt_print(SRTContext *s, const char *str, ...) +static av_printf_format(2, 3) void srt_print(SRTContext *s, const char *str, ...) { va_list vargs; va_start(vargs, str); diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c index 9922f33485..3b66b4f2dd 100644 --- a/libavcodec/webvttenc.c +++ b/libavcodec/webvttenc.c @@ -38,10 +38,7 @@ typedef struct { int stack_ptr; } WebVTTContext; -#ifdef __GNUC__ -__attribute__ ((__format__ (__printf__, 2, 3))) -#endif -static void webvtt_print(WebVTTContext *s, const char *str, ...) +static av_printf_format(2, 3) void webvtt_print(WebVTTContext *s, const char *str, ...) { va_list vargs; va_start(vargs, str);