From patchwork Thu Sep 8 02:31:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 37751 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:139a:b0:8f:1db5:eae2 with SMTP id w26csp24607pzh; Wed, 7 Sep 2022 19:32:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR6pwQaJy8QytY/gVtEWs1w1bkE6deaGCu/FzA/wxNWtoNKr2ZXT7kAQLjwtHa1INHJF4/ce X-Received: by 2002:a17:907:3d90:b0:741:346a:6e46 with SMTP id he16-20020a1709073d9000b00741346a6e46mr4298908ejc.279.1662604337682; Wed, 07 Sep 2022 19:32:17 -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 le1-20020a170907170100b0073d7de9711dsi986748ejc.650.2022.09.07.19.32.15; Wed, 07 Sep 2022 19:32:17 -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=DfgZ66HF; 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 9393168B98D; Thu, 8 Sep 2022 05:32:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-oln040092068014.outbound.protection.outlook.com [40.92.68.14]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0189B68B35D for ; Thu, 8 Sep 2022 05:32:04 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jgLp692VfQsA1cv3c7vQj48WM43U4ye9UPcnb0Obc7RdQd3ZXZNAJKOUQNpEwsNyk+UNem61XzfepzeBb3OGsEHCd0tnrSUwKrYGwHLxzOH19T/RTxFFycO50L5P6KMPoT+RZEDI3UoBjALoQ7ESJ2NailA7bKD0UDJjHEDTGn+nl6cl9dwSR4FRbJIBDlizSOa24Yv+Qw2QpqUxjYoonLwLXEhDAPQHzj5nk/T4IFBKbtLwGt2xhBm2jHgMrddBwU3lC3IVpaJyandg3Chpjo2KUzEElszK/bHVxhBKXT0E2Orrzrl4LrgEOQVRGmKeh8wOZ/ilckpRN/h0yCotbw== 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=z3zbAW85RHAsZkkWQWdKnR/V6hXZUJPPX4l6gedA2D4=; b=Zw/AnMGJ3/cB0NyOFgRBvDlE4D6ze1PiaDM+rIHgPtC2kL0avnHIJAaGI0bUge9UXQX36QKCToDQyjWifRntglPHBkHzQlJfj+PNuS+JjnOSdByYzpIjwD+DMJjIWwkGuaiyD9n+D4dL37yW09nOfP/Wm+bciKna6HH2TT9f29kxOcvKi/PBSWMg21mlhEwqDHN1Ug52hWxP+zNyF3Lhhp9Mwb5bGxpVyK0K/PbeFCGTJ9Zf7gsn/SfLL8CgA1IsEXUW+zYNyZ7W1ILllkBxgJvr1/85kRL4gCJvRNrobjQx5uJoj9KhZHDwVNbyJK2c1jYWLQ0x9XQk+vGtxDeVXA== 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=z3zbAW85RHAsZkkWQWdKnR/V6hXZUJPPX4l6gedA2D4=; b=DfgZ66HFexmmynma/IPqR66CFflU1htlc8oH8c66DuW7G+764wrFUSdWHXqiPSP/gUhpmuqH6rX2/9+BZd3GPxRTFvcY3A1FCqv1NjpwKvoI2tHWP7Txiuq8AVf10CMU0QJMxj1fxs4JxHkk0u4QjSzuytNULxTNFhXoPviLAOidfyaWgq2cESdOAUuVTMbhogAwXXQSXEKCDgeo2QHCPujXxTFbN4LKBTksmUsSq5q4GTGtkHWgo99U1dEEAr5fiN7yWybOQxKD2O0qx+Aj8lAR/3TcbT+TjcQ8Y3VKEhRslmAIF5Fs8VVAYrxl/A0edw4jzDZ0SPLi10iPfPmVCg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by AS8P250MB0252.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:37f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.15; Thu, 8 Sep 2022 02:32:01 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::c3af:c609:301f:beab]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::c3af:c609:301f:beab%8]) with mapi id 15.20.5588.018; Thu, 8 Sep 2022 02:32:01 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 8 Sep 2022 04:31:55 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [8ya4pvn/Gg23KC/YZDKpVBHbCX5B1Nog8xHHIzyWfoc=] X-ClientProxiedBy: ZR0P278CA0066.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:21::17) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20220908023156.2210710-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0c7065a9-a229-4923-aa83-08da91424ec6 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9Xmp16suNY6DpRD31ZauPJnPpN0uJ9LIbfPt0w0jhhi6lIHSR0kGMPu02ES+YBJ0z8jiz/EDKgXspYk6UcFUp7YjuqXVn/W8nUXqgOs9CMKQCMEJFt9iyMbWCdoqCRVp/diTMO9Rzf3+SLFArJrJAalO7FGWPEUZOrjrVIHVxX8Mc92H+sW1yCe+u7Vd8bYq0SHqlDLNexEAEZcwaYDTOdmVg2D0vytj3SFt/58StYqAV6bxcXB9vidbovb7ugv91WkpM1iUlWtSU7h2POiCyn7nGDD1BJTu/Qc0Vi4eApN0tsxSiMT4YTj70WI+jCcQnQJp2wni7QZmDcl124DfmKlMIv5s3x6Rgkn8Cc9AnrxpDq8XyToWhhAaG9eLjYBexlp46Ewg3S0XRh4imuC+2rIxDUtpffyqgDJygSOHfyuArxDiI4MwvTn/rKmUGmiMsm7dv5oZ+ra8OmnlMm1CQlXMOisY9zED5MZ0JK9vFyL+pzsCZc6h0i87rWkdO8mS/Ecw1AVYfXiZ37hqIUEYnWw/PbtqQMcG5gExYDR5AfDwxzK7n04VbKM1vuhoa+5vNT3MSTLaUIZk6UpWV1C+p9HW1NximK31NWDc8o1Xe78ABYX7g6QTvdzaEGKDLyNVw/DMm0Fv16cEsm1+IX8QzLsSzWowDZLZz5iUuYQdcHrYu2H7xPREqpDs5PnFnlX/ZwBL6wuuBq9FxtYOfL+O7J2WTYSTWJ3jEp8Fakk7fy116OKZuQxDALqu19+gpkXb4Vxg= X-MS-TrafficTypeDiagnostic: AS8P250MB0252:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P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Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2022 02:32:01.0606 (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: AS8P250MB0252 Subject: [FFmpeg-devel] [PATCH 1/2] swscale/input: Remove spec-incompliant '; ' 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: 8SIcNrn18zVO These macros are definitions, not only declarations and therefore should not contain a semicolon. Such a semicolon is actually spec-incompliant, but compilers happen to accept them. Signed-off-by: Andreas Rheinhardt --- libswscale/input.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libswscale/input.c b/libswscale/input.c index be8f3940e1..88e318e664 100644 --- a/libswscale/input.c +++ b/libswscale/input.c @@ -583,8 +583,8 @@ static void yvy2ToUV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, con AV_WN16(dst + i * 2, AV_RL16(src + i * 4) >> shift); \ } -y21xle_wrapper(10, 6); -y21xle_wrapper(12, 4); +y21xle_wrapper(10, 6) +y21xle_wrapper(12, 4) static void bswap16Y_c(uint8_t *_dst, const uint8_t *_src, const uint8_t *unused1, const uint8_t *unused2, int width, uint32_t *unused, void *opq) @@ -828,9 +828,9 @@ static void nv21ToUV_c(uint8_t *dstU, uint8_t *dstV, } \ p01x_uv_wrapper(bits, shift) -p01x_wrapper(10, 6); -p01x_wrapper(12, 4); -p01x_uv_wrapper(16, 0); +p01x_wrapper(10, 6) +p01x_wrapper(12, 4) +p01x_uv_wrapper(16, 0) #define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))