From patchwork Thu Sep 30 13:39:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30746 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp692101iob; Thu, 30 Sep 2021 06:52:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt5iHt9l5YagktTk/Sp5ugb3vo9HnM7HkyO6G62AIsjMebd7b/r81qZhIgbSG2q5omREMB X-Received: by 2002:a05:6402:51d3:: with SMTP id r19mr457154edd.60.1633009962096; Thu, 30 Sep 2021 06:52:42 -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 18si1943034ejc.508.2021.09.30.06.52.41; Thu, 30 Sep 2021 06:52:42 -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=ZHcR2a1w; 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 A382768ADC0; Thu, 30 Sep 2021 16:46:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-oln040092069012.outbound.protection.outlook.com [40.92.69.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7F2566898F5 for ; Thu, 30 Sep 2021 16:45:59 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c6gKHDMz7AqH0imU2ulBf/wcpCALJWgdUjKfKIYx9QwcPVsm7TtKXZ2wvfYfQcU7AkSVAsBq2iPKfuk/UuFVyGK5Apb8jXL6g3BNk3d+OBz9pK2aRN2lBCvf6fNlKeqmvfYJny5bch7JhpZF9yc9+G5U9mCCjXHSfW7M+OHQpiQdu0k5JrKDTDpKM45Ca3ufIoS1/paddMDKA7d7hMDu8mABdBxAgJuqYUCpDXWIuTFzqvEYsS4/woTgtmi/XGdJ+Zf4v/GClrrErRSSReoLC4icPe8D8ciyqjpl8ATaTQ/4Nq+gYG6Y8bKS8MMzujcUu1mhEsok4tw1I8Cs7dguLg== 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; bh=MI7+Ko0OordObD+kCkkWkf45WjH8E5HT7A2aaUBq5iI=; b=SBYFkiHnv6lKV4ebFzD1AoUm2KW4prifI6A9aVTcdwIP7yHW+R9/+ddYzR+cWuBbKW860Z4h3E/wzXh8rxrbJrDKTtriOtUlOn1T84QbCVjGLM4n1Hh1kcYIOydMVsOQKgnTfB4HMhyvwURs0PqkF//wWrIpjq6yXnag2K7fOO4ZfQp1DmgeBEWiaqUqptZ4niKi/Oo5bN2pu3iUraS8N+R+BkZwpw2NN6T1aigSnXQzQSvwxT7HVwV3++tQahq19+Ti7Tjg7tHxCFJZo+i4TVkI4ENPPeqMYCjZ44Yc6XJwf65qRbf6CCBLvLDur6nETs/Z9jC8L9pAjDlDsB51uw== 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=MI7+Ko0OordObD+kCkkWkf45WjH8E5HT7A2aaUBq5iI=; b=ZHcR2a1w1GPEO+ku0Zad2VI1nSmxBFoJgltCiWZQqVpA+8cXbjs6n5aL4uBB/k+u9yBG3wm6H9cj9vQOFdJL619ZWPKjnFHnPBSzTfgVdvyqjYTpNYgTzHKJLRcTNL4m21rDu+SUn9ZiWEwhVCLkLBXwpMLIgGLgX0V+7TPeeZC02XMr4E7Ghe+M1TLdDcdib5swmI0QrA27eWecK9ePCyiX0XaPiR7sE1W5yxnyPAMZImKHltKMamhOwSVHG8iHl2e2MBZfEo50TvnSkJhl+oDBY+UBka8yKLBeZdCoqmxHGDChekaV3dCI59CatAxDia+KNoDRuYrxHDzUDmt8qA== Received: from PR3PR03MB6665.eurprd03.prod.outlook.com (2603:10a6:102:7d::6) by PA4PR03MB7246.eurprd03.prod.outlook.com (2603:10a6:102:bc::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Thu, 30 Sep 2021 13:45:58 +0000 Received: from PR3PR03MB6665.eurprd03.prod.outlook.com ([fe80::15d4:ff2d:e607:cf68]) by PR3PR03MB6665.eurprd03.prod.outlook.com ([fe80::15d4:ff2d:e607:cf68%3]) with mapi id 15.20.4566.015; Thu, 30 Sep 2021 13:45:58 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 30 Sep 2021 15:39:50 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [LZBLgbkgKns4ljHdx2RfzQv2OAP5/FUD] X-ClientProxiedBy: AS9PR06CA0306.eurprd06.prod.outlook.com (2603:10a6:20b:45b::15) To PR3PR03MB6665.eurprd03.prod.outlook.com (2603:10a6:102:7d::6) X-Microsoft-Original-Message-ID: <20210930134239.2672698-48-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AS9PR06CA0306.eurprd06.prod.outlook.com (2603:10a6:20b:45b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15 via Frontend Transport; Thu, 30 Sep 2021 13:45:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac12959d-823d-47eb-5a1e-08d98418a20f X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UIBqLe59qjkRp21wji/xErRRRFI5QUJRfCNVXrNQM3kC/hCFb2pcviDRflsMvYDPnglK2qBPYTudubivraNWqbQEDINde0z14QIzpwPQ5ef2f/AV2dy0XQq3AmtVBNhjCbqC9X0wb2+aa+cWdPhOAWVGSsETihb0noay4I9vttC9UGnkRYpbsIfXPK65VbqUCOHILrfk+BaDNvzEzTJDeC5fG+v5DiM66EnMN/Y+1vx18l4C4COHQMDg/qss6XWh5AGt1cHk45vR2ZuIUcxr0ttrKs4HBsKyQIE4Ej8xzez+3vPzoPDsV/kSUp5Iz5h+sM4p24Wn+o5tfWAZDv/3dECxGpJJqVuUFZ8N9bXdFyICzt8vJY/IpKGDM1Mym1e4jnsfQfFu8tDTloiOD+v2FfxSmnoSXRp+nRPshPTG6XP01/Xbro0zynwS4cb2tWILxaXQZgeysGmPGUJgDuSKdtoCedycIlz0kYlK6pAdFv2bBChKstRUpp2OD4lYraO/MQMVughFh2sAsu3oIhrRhYjhYa11OPvE8lLKmWM4lKEwncO7xnOcwihnXjomqrN/7tlszVEMpsEua8hy3zhMd5T88ZaSNASjuqzxv4PTJcdALjh1QsCK+FO4TI8fuJ3R8Ru7D0wYEII3b8RQrMjKZCmYloSPN9nhFHPFusUhOh9i+aco8CpFpdWOnH2C3DJZhh7jcMTo9HdFw== X-MS-TrafficTypeDiagnostic: PA4PR03MB7246: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CaKggEoIsUIhwnV1SyWgFEQaTDjztr9LCmCBk1oMXs+eRyUjGFfrrXc+lvybC/bqa6zstK/VzaxmIO5JYiMGJHQmIR8OtBapNs5ysWBm+CrKyoCrMkE++n6PBT+FaZncZPk6xk0ZvO7IBpyOT2fuA/YYlhjeTPQyQkQU82DrBdt7PZjgztDc1TI2BCsD7fupR2EwmNKj3PbpPqZbD7Df6e2H12ctM0aF7888a6AeLkbDSvwrUnibNiQ/XqILhK+ZDX7r9CU/yJtFmpvnJ2RV2kaj4Y4PCX9BkQTYtnEL9exM3JM4Iwh8pcjupOWb6PxGPHAoGdx5wmWUHlWeC7bEl8fTqBcv0evXetq5mLs3D/qLJ/jdYOUsBFsDOO2YIT6rTfIw1Uqh5ziPIlO8XRXjY1785K+y6enrcTUJeYnbV6MZXDwPndUEfRjvSRVVUMS0 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZJmdLOzMlVN8aZBtvJxFC/9W2qg8c8MaJFS0P+6rnoUb+BL8MFUquMM5PBbBfaJJKKX3QuMLqmEvpn2u+478A6qeAwdw7eIlweFxpmb7NCxG6A+reAC/0VEP5SM7fxWkHIwdyzR+d2dRY6FE+U9hLA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac12959d-823d-47eb-5a1e-08d98418a20f X-MS-Exchange-CrossTenant-AuthSource: PR3PR03MB6665.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2021 13:45:58.5629 (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: PA4PR03MB7246 Subject: [FFmpeg-devel] [PATCH 049/218] avfilter/af_superequalizer: Store format in filter, remove query func 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: n4ASoKki73Js Signed-off-by: Andreas Rheinhardt --- libavfilter/af_superequalizer.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/libavfilter/af_superequalizer.c b/libavfilter/af_superequalizer.c index bf55f3ab94..aa73e92039 100644 --- a/libavfilter/af_superequalizer.c +++ b/libavfilter/af_superequalizer.c @@ -270,22 +270,6 @@ static av_cold int init(AVFilterContext *ctx) return equ_init(s, 14); } -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVSampleFormat sample_fmts[] = { - AV_SAMPLE_FMT_FLTP, - AV_SAMPLE_FMT_NONE - }; - int ret = ff_set_common_all_channel_counts(ctx); - if (ret < 0) - return ret; - - if ((ret = ff_set_common_formats_from_list(ctx, sample_fmts)) < 0) - return ret; - - return ff_set_common_all_samplerates(ctx); -} - static int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; @@ -373,5 +357,5 @@ const AVFilter ff_af_superequalizer = { .uninit = uninit, FILTER_INPUTS(superequalizer_inputs), FILTER_OUTPUTS(superequalizer_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_FLTP), };