From patchwork Sun Aug 15 09:55:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 29531 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp1103976iov; Sun, 15 Aug 2021 02:56:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjRAKAohV6LDBELpVCw73Mq7vz/QvyqpHLSLmq1eRpBm3Dg3MbgMV6Z/6CrAdkgTQnhQ1k X-Received: by 2002:aa7:d787:: with SMTP id s7mr13566448edq.336.1629021376964; Sun, 15 Aug 2021 02:56:16 -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 t13si6892749edc.254.2021.08.15.02.56.16; Sun, 15 Aug 2021 02:56:16 -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=ZCEVPxNL; 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 52B7D689DD9; Sun, 15 Aug 2021 12:56:13 +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 ABCD368981E for ; Sun, 15 Aug 2021 12:56:05 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ezzs88Iob1lN5PT6IvB44Cp/ePBwvY9RPiCfLRN7DsxflFgiAt2JuPGiu81OYL/3Dyjtpo8HcWwAZ27eQ8WdCIg8+PiSD/CPyvgLbTKxFvtKczNWcaj6IhgIK+fPi7GGwdCGDZZLRVUMSLpIW08cIc237WAmqEQJY/OtLFxHgdUEPAZcNZ/G+HNvTV+llnNHgs3An6n/JoYw+ijON2TF+ZoE/sMqmRt8Zt6eu1pSfCNgDH18SBuKEvm9Aw3pzlAFEpSryAiIY2n4e3KYoMX93Ig2aaJBw/ByfQB8a71NznQHulu0WzVA8djW/okNv3TumeUuS5zxMKf7JfYRz9NXhw== 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=LFqfgy3t9RlnZyUr7kgYQkTpGQr/grhk3uYhlksSOtA=; b=cq3qfKb73MeppQnvjF7hspfpQUAiWyNt8Twjy+CUXZYgQsEe27GhC+VaeTYXRDJXQ5wL6YCwMuvPCJZkF5PY3CdUeBpe38rNbfDIg7x7l3wCL/7BfzWlvOwYPzUKyEqLNwLyj2BtiUgesMNvWMg18+EY4Hw+BgWqE3TACuZgz4LZMckn2PVYwDsI/xP/fqPygSlEyqJ732GbFUBZidb90sxMLuq7rv7Wp/z6ZcQGQWMwOjP4X/vCGUSZE/ao3mL/aKrgv5oZhae3PXCLySgWV+BiNuhS37gzs9NpX3HeULTkImo3HGMw9BbdPfyrPARsLK1320TMvFnUiSHXyuKo+A== 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=LFqfgy3t9RlnZyUr7kgYQkTpGQr/grhk3uYhlksSOtA=; b=ZCEVPxNLaZQ+ebSLkvomEayqjlpZEu7+UzSczkzoNxnvCH73i9f3KRh+UzPwo6OnJk62Do2o5hWYcGNFnU0lykgNJjRLEvrUsdKZUMNYLYyTGCusTBKGX4hGH63FKXTowaiVhVwH4jE6K/0xq9aPhMZwMTtIj13PBO5lePgxA9C0DBgqPHBUKQP2A4BHQ7D/yy4yZbVzJ8OXvnTnuKEgHQHS3nNtvgQJdgfY68He5Ywq6mvgqP2aqODdF0bFh3di0io/mhJkS0xaiaz43Xk4Aif1n6ZCqVKOtldVozyxQas+fPnrBL1jel89gniceLplIufeECJFHYozFqeAC2a5jA== 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:04 +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:04 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 15 Aug 2021 11:55:32 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [HpwhEMK/cDjyT5afiG23K+qT3eMsms30] 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-3-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:04 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f038767-7f05-4b5f-0ec9-08d95fd2e547 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiRlrIlNS1TwwsM0PAgDGnqz91+0qxdoua8XHm3xK8WSfspZSsuRWJaIyFTHwLUs7hJVlArutFmXVX0hPpBtm3/YwGoS+vTH3XnZK18fHt2H3wwUxNvuZM4rs+61Qc4mzbDRwIpRRJmiSnVQRd5WcU39A1UuDZY7ifAM2EFZj8e/ATfLpzt+85cy+py4ye38fE1Jl5IbiROOHhfkNm+ZwHkzLUZ0OObb7i9r6j9roriVs3uDZAuUAUgzdMFAPTCOSOJFFRPx+xQppJw/WA2WPRy8AN83IKr/v/B+UA19jixsAEMaxrkhuKVkRsFzkaAP2NSU1Ev8aOpYiz7fgsRD2g5t+qFHFP3ykjoLK5MfJGklQx54/uU/9GRmD6PsamoskGBycA7/fVWLcv+Fxi5hCc9LGNBJILIQGoy9bpNnvi1n77igZ7PV0jK2WDnDZLsVtigDsyRGRdFIydqM3/dUl+ceQPgzlcfG2IHTmxex6YaCDcS4TgObTzT82GNu3UfZvcUaxipRPeBuMxMXncV3ZvejfsCo/E7Gc+9AQJKkxEu6yppSB2TnyWfXU5GifUcWz8wx1NW+gat7DEcDLgS10HbAzdzDtSDZtysMRW6RACgPSZ+l8vwAvCFUEpPD/SwE+Q3Kl5+sn+YxMm0GYD0W1TWuxc95AiMbDCXcjle3taapz9cT5mNCgRY4pPESsfUnGHOUcj7GYpj7K4uODVxQbS1ktM1JGTWG7q83kGP3c1lR2y/Wov5XrToNlnce48jPE5M= X-MS-TrafficTypeDiagnostic: AM6PR03MB5542: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xavlC6oLuIkCHOGS2L9GRCMrIu+EuGhCwIkGAFYQnnzD7asVFZ7h34zii4emVrKEHlgEedhC+e0fsjvMG0PG7e2xuj/fhj6XoFKxFm3bXZFgBYaekm9fPVqzo6s5QJR19GCWwV8V5zrxJnqS1rJiemJwYatwQVSplW8gH4OnIxDGTB8UxRvPVu6hGuRN/sn82SFXxYO+cMkX0uMRVDGo0pmF7A3iQ1K+cZ4zlAMN5G5DUMF0pdpz94iG1rwmkgSkNVkqEv9A0tblQ5rzJcBJDAUbE+L26Zil/jqTNLLCNfHhVYgZ5DmvLDpvXx1IeSEFiH08vRL6UjKDlHUiKvMosgUGvhH3L4tGWJZbY631VJX5dCT8Zl/L+s0glQsYTc2AFfGUOfd5+mFWHHNZIJug6cwDFZjfvAY1k32dXKC0BzaK40WjAw1f8cxyx8JG1pFJ X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: W+iMw7iSX2ULFuUjpaghaRu672NICsWYWeRNjmi1mtUbuOBDOfpShGGFbFe/cUqhCWe6SjqPJiRPncl/7LluytxdUHghneq7T8IE7Kj0NGW/Xl7g63OAfcLCgDoDIkhmeujg6ZCoyakthcR7lxdF4w== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f038767-7f05-4b5f-0ec9-08d95fd2e547 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:04.6047 (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 04/10] fftools/cmdutils: Switch to avfilter_filter_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: BQ3ngX8nniKt Signed-off-by: Andreas Rheinhardt --- fftools/cmdutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 96d38803df..2dd035a7cf 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -1713,7 +1713,7 @@ int show_filters(void *optctx, const char *opt, const char *arg) *(descr_cur++) = '>'; } pad = i ? filter->outputs : filter->inputs; - nb_pads = avfilter_pad_count(pad); + nb_pads = avfilter_filter_pad_count(filter, i); for (j = 0; j < nb_pads; j++) { if (descr_cur >= descr + sizeof(descr) - 4) break; @@ -1949,7 +1949,7 @@ static void show_help_filter(const char *name) printf(" slice threading supported\n"); printf(" Inputs:\n"); - count = avfilter_pad_count(f->inputs); + count = avfilter_filter_pad_count(f, 0); for (i = 0; i < count; i++) { printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->inputs, i), media_type_string(avfilter_pad_get_type(f->inputs, i))); @@ -1960,7 +1960,7 @@ static void show_help_filter(const char *name) printf(" none (source filter)\n"); printf(" Outputs:\n"); - count = avfilter_pad_count(f->outputs); + count = avfilter_filter_pad_count(f, 1); for (i = 0; i < count; i++) { printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->outputs, i), media_type_string(avfilter_pad_get_type(f->outputs, i)));