From patchwork Sun Aug 15 09:55:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 29529 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp1104042iov; Sun, 15 Aug 2021 02:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/Smozpig885ykKcNOSzQ5zInDWLwI+3OoCUabdxKP6YzMZ3F5VQL+RVodiVtzraNyjsjQ X-Received: by 2002:a17:906:158f:: with SMTP id k15mr10998864ejd.241.1629021386881; Sun, 15 Aug 2021 02:56:26 -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 dp17si7257347ejc.724.2021.08.15.02.56.26; Sun, 15 Aug 2021 02:56:26 -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=RFV9USkb; 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 5F0EA689E94; Sun, 15 Aug 2021 12:56:17 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-oln040092067105.outbound.protection.outlook.com [40.92.67.105]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C42F7689C64 for ; Sun, 15 Aug 2021 12:56:10 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jnZG9hRnpoMcYWu8HgVc6jLWtNwAYw9mXLXUHgdH7bU+gqIEWu7bWJDVstUPrbx68F5xTo3BAIyc2TsRSuVOVeQNSwz/zMU7+/iyBDfzMxVUhUtPzP3E14ZXJgoPOg/V989MODO3Ie/+Ej9P7d7hMsk+n5g/A1mpNlq7JfMdJ/DkQvv6yZY3PonjQa5y93+nH0FwxSUvckJDvV86OtGxWpWqEbfulIvkDqI7+C6AjcG8PjKRM/P2hP9lDj7mbj8JoNR8jvbWyi73jDeGeCVAyfQtlqlnDcgCIpUbVDQs2Av3SMVHV6P8RqxDKpRX4qbJXzwsus3UXkWWTUJ6yh0U7w== 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-SenderADCheck; bh=25r48EuE2lW+RX3xp5bemNTJ9xZhht8TnD8LZfnKeco=; b=PaFNGQQKgtVo/9vGBvDrHLZGq+CGZ9aYfTcC+/zLhqtkDgQSK1Zo/A91kho7RrUYPfiNdCrBcCYl6Jaj8rBVmEaDUCa0Neq8tBesl9/MI1sjI+SejhYrjllAuzNSFt6WfMT8Pet/262mKLKEibVfOdhE5T3girVHfWJn5c1XX5FwKRHcyfOyndEuN7WrAgDDbbwkICA/0br+G6MIM0WUP0paZ+2dhqLoGbRxcFry7YY6uzLNz/SEBdHKIpBU1hhWJBBJExo0fv6MCUuwMH3mG/AS2N6P95b+MpqRTmWZ35aWe6GNiRmuLXzBj3y2f9dRLOptP4iTQQh9yw9EsZzU0A== 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=25r48EuE2lW+RX3xp5bemNTJ9xZhht8TnD8LZfnKeco=; b=RFV9USkbAopChYG16KOfLLLwtz0WzTeHBU4XZEVV7lhfS557wtf6fX32C7u52X4FVh2hfMquXkvqDBi7pQfaySMDJNGBCzFujBzIMY4aEVYVElYsFIOOzIHOCaL1Vm0BQtFRH/7/OmxN98TSqWiBjTu9PkHEAHSUxmd337PmhX6J7GgTyuATBIRXoBw2u+j2egO1d5iYq5bj9wJcr1Ga+47tAY94JV8/xl7d/UdReYiK+pC/LbxF0QZI4u6KOmiJMob6mv04srET8ZS8pgmtCEjeNmEWjRdrGEftAZxC+wEm6OrFtahRlawdot9CfFirmf/BO0UCspAodw8W+Sdpqg== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM6PR03MB5542.eurprd03.prod.outlook.com (2603:10a6:20b:f8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14; Sun, 15 Aug 2021 09:56:06 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::ded:bace:bc7:e91d]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::ded:bace:bc7:e91d%3]) with mapi id 15.20.4415.022; Sun, 15 Aug 2021 09:56:06 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 15 Aug 2021 11:55:33 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [fbaPO3Tz+E2XRXc9rK3TnJbjTylz+oTt] X-ClientProxiedBy: AM4PR0202CA0005.eurprd02.prod.outlook.com (2603:10a6:200:89::15) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20210815095538.2116202-4-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AM4PR0202CA0005.eurprd02.prod.outlook.com (2603:10a6:200:89::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Sun, 15 Aug 2021 09:56:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f522e610-c412-4c68-7a57-08d95fd2e63d X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UIMhWUD35g0FxUDNN6JTWbEBmdCjAkM3yudF4WrPUNPHM0U/bG1wU7djenT9KK/YMqt/p6YdIjLhPlyDZhWVMwtWi85DUOesxnJX+n4Y7kJXWdp1PwHkZ8CrCLotk+dOLPeZ1TN7FxkD9Rx2dr/4vB8QtOViPxUbxqukq8l0UPYlQH5Tsty1RVsYpM6mg8oP/84RlU0X+k+8xqwTMS2uT5W/4IgbF0uGnCwDw9jFfil1fG1xPW1nZyNlA/Kk5J5sx6cJ1oYnSsyCgNQX8B7PY5+yhy7gQFjlcJUq/SaXvKW5CuEIeAq3IJt9pTH3WrQYZ4UhS4V3NbGH1Yop0wdpjsHXFwLvUi4T44JVVfoThnLsmHalyQtzFj1t3MKIo23ut3kwpajbbQb+vQ772ou4et8BRU04cwtYrftQ+M97/jF98XyJg9wvlvoQ/I0XHRmcjqgR4YFXgj/CYwcaDwvgy2BKwKJ770io6eAWzOZ5zAQWRQt9kBMP7afoYEJAZkpfISh6E0E+mk9nETgY69/5oeYP0t4Zb+aRp3UPkmkuRrIEJR6jNngGAIec84V891JKkfN3OSLYt7M0FvasBUSFpo2QJ9kcrffkhbHenLExmJwdEO5agx57yAm7jOBJR+2mZyqFBqNA1TFxIhpT5fB1ucrD65w/Skd9pzdYj/LoyqyBIQEkZ8cyyKlpzkSzFYNI30vWGLnv/6ddA== X-MS-TrafficTypeDiagnostic: AM6PR03MB5542: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kiEzVw/TbPBXpnfpz6Hng81kVx7Y3YTJL59jKFtXI7WEtSJU3/j3jb5LJ7ALYtG6b2qXtTURvVTOipwK6ubKK3pv8kn747410uuEt08yCCwr/I95ODE8hUKItYnC694j2U6Vo4Ul9Kk9q0BbdNDu6btPftnTqj7hYeOw6/FDc7ho0Gb7Hm4kEgNXfLL+NSbZJkLRqoc8wFe9ZGuqISd06q1UQjoXgMqKVkFtMc+GNLwv19lgcpbAlSVSj7m27+mvnJCMHbzJEzrbbrVFUdnuhNji/7nz+xrQD9bB25FOtQH+NTYaAe8/K3ZpnmU0OUUs6BM8pzZqpqi6CWs8CG+Ho/VzqdPKhQp13LnETDQK9hXANbZdcezwzwLQs5lqcgahgXi/iWM9DmXbNqavO9lxqvtba6JyjytKMI5UHpvWRWLjE0Dux+XihHz6w2MDjAZ1 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iPz6bxMZBi/HZHAvOV7kUnfGiE6TBXqkN2eo3CH1HGJcr/MW+HCv0/k0XoWbiZMxJeohFvQ0vf4Pf1Q8M9QFVyN8qTrIK0UgMHDdykmBtyNBxR8z4W+gGqRANN3JvtmMMioMjuOSyEw0ipkNnPrUSw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f522e610-c412-4c68-7a57-08d95fd2e63d X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2021 09:56:06.2196 (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: AM6PR03MB5542 Subject: [FFmpeg-devel] [PATCH 05/10] avfilter/avfilter: Deprecate avfilter_pad_count() 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: XOsev46ljrsr It is unnecessary as the number of static inputs and outputs can now be directly read via AVFilter.nb_(in|out)puts. Signed-off-by: Andreas Rheinhardt --- libavfilter/avfilter.h | 5 +++++ libavfilter/version.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 0905f308eb..6006663e70 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -70,10 +70,15 @@ typedef struct AVFilterPad AVFilterPad; typedef struct AVFilterFormats AVFilterFormats; typedef struct AVFilterChannelLayouts AVFilterChannelLayouts; +#if FF_API_PAD_COUNT /** * Get the number of elements in an AVFilter's inputs or outputs array. + * + * @deprecated Use avfilter_filter_pad_count() instead. */ +attribute_deprecated int avfilter_pad_count(const AVFilterPad *pads); +#endif /** * Get the name of an AVFilterPad. diff --git a/libavfilter/version.h b/libavfilter/version.h index 75cd10dccd..31d9e6750c 100644 --- a/libavfilter/version.h +++ b/libavfilter/version.h @@ -56,5 +56,8 @@ #ifndef FF_API_BUFFERSINK_ALLOC #define FF_API_BUFFERSINK_ALLOC (LIBAVFILTER_VERSION_MAJOR < 9) #endif +#ifndef FF_API_PAD_COUNT +#define FF_API_PAD_COUNT (LIBAVFILTER_VERSION_MAJOR < 9) +#endif #endif /* AVFILTER_VERSION_H */