From patchwork Thu Sep 30 13:39:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30717 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp684202iob; Thu, 30 Sep 2021 06:43:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdTziyDFWbAU+tRLSA3i/kBN46XuyrRD3vdxyFhb0o7O2urpxqEUU1w4zVuVNuQiitSmIj X-Received: by 2002:a17:906:1ed7:: with SMTP id m23mr6740676ejj.558.1633009394852; Thu, 30 Sep 2021 06:43:14 -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 c12si4247738edx.6.2021.09.30.06.43.12; Thu, 30 Sep 2021 06:43:14 -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=fb3AVnur; 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 8F74868A83E; Thu, 30 Sep 2021 16:43:05 +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-oln040092069093.outbound.protection.outlook.com [40.92.69.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 27B2368A33F for ; Thu, 30 Sep 2021 16:42:59 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/ZtP4SsYYdR6W9YPAfs9mXu2x6Q2m67oo1XJXxDT6NJUD8gPi8nnM3goXMrQmBAoYTNYnyZCeYIl3veQbiqVdF00Z4ly7L1y1jg1zrYJZTKIj0cmkl0ReCnuamtdkO2nK0DMie/+rAlo48NkuF0jtdel0SdI2B90gykvO9otKNr6RJDE48QPYRXrV8/LF6rBpM9yjoRQjU/MeB3szV6Ur2I/5OmBHo+llYLyZBcQziw7oPI9TX+UvxCu4+SHXwIaXz3bBpbeUTRGHFhG2YXxreKXIlki5Q89HJO20VNza/Oq4KB44QTOA6sydv8n3VIJq+sMXhFK18eAfEa4qjBCg== 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=j88y/+DplSOFOFrQ1C/GY0CVRwK+TyfHoiiPVFGD09I=; b=FsKkWFSuT4qy0ySvK0Z6rjT0PLBOTPz1/1PrQzq719rfLbCGxupM4p7jfAb3zdi1HZvyaVKp31avx5+zDz+eNwJA+8mtkAamKNTRvQWjPNXIrfyqf0AVNu8d68Oa3zmrjyvBoEML4syMcetyrM0SDoAPDtu7d6UHmi0Q7n+qfeyvPQ88t+UnP2yJ0URjvHGef1oeasdJGdZ40I2yZRy4FSoPzsxEOZ8skOkdD4w8chc9PCCZzJTKd4uT8Pv6TgLrX3e6gaV4/4+PKM0sYQOXDmx/Bgm4SlXg9LBnc5Jt2Ne/Ky3yOFRByP00fq782atw0TP/zKXOwJ6sPUDkbhzTMg== 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=j88y/+DplSOFOFrQ1C/GY0CVRwK+TyfHoiiPVFGD09I=; b=fb3AVnurqDJv1Q+0kdn7Gyt0B6lekwaykDHtyIiQ9oQe2QbGsRbWgDx4c6PqolzWbBmQcUAXZE4yQHj5YO7tacgB4LQzGDm8ly4wGSHuNQryl63jb7uuTZeDh0VR31+4SQaT/aywxjO0Tgo+v5+QJrxBUoty9i4z3E5lft+7SSwdBefpIhcT2R/Hhcg/+bexUpl914uewG2++lIElYJCJSlvzQyt/OFR53wLvhDp8xeYC/RI+z6/JXxJy0GEF6LYubXXQSAhfdp9LnAOb7X7xu45mDjsH8AKWWEpx/PS+P2LIkBCBIp6MAfvm+AGxUvrZ0qfvdH2kh0pVVbueAouiA== Received: from PR3PR03MB6665.eurprd03.prod.outlook.com (2603:10a6:102:7d::6) by PA4PR03MB6847.eurprd03.prod.outlook.com (2603:10a6:102:eb::5) 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:42:48 +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:42:48 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 30 Sep 2021 15:39:03 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [If7UTXcguFpTzx3QAU09BHvMQAJWfsYu] 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-1-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:42:48 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 013ab36b-3813-4295-97a2-08d9841830e6 X-MS-Exchange-SLBlob-MailProps: f36zkjAOy3Uma0CLWtbSl2Usyl07K79WolL8qfI7izKpHVtgVltBox1u6QaU1eRbmZLKRXWVWMA49RefIGGS3/W/iIMAC8El8sdaknb5qU7XdKZKnTSllix8D7x8skkehoiCt4v6h0SyGHfXZRVZiy8wnFp77Uv+8y+8/FLkniejSvgpjDDHZqz4xeelF70fk+U04TOyQAT65X1dnxmlnKQ8QOUAe5TcpABgFKDKksLWcd/TeUj4lgWp8DLj95huzO/F3+i4hmu1WuejQfKWezjW2MtHM6CS258vohIje3C0fkzRpPSd16B+yUHdMH8P8JLod41bEgJqIPrA5u4JkQ0orDHcFA5pyuNGgMu3ZMlOV4UbSTz4qepe8M8VU+Q2j0Vce+g+UnWQH4AunkAx+s09QO9dYKvH/bLs328iK2O1Kz3jw7OU8AkY5sHVTIqZ6lkIqJc/RxxvU75cmth63iZ04dEiSVydBDKeh79x0jCT26dh35gsgGNZQDxStuNwpDL6NGXDqP4A8UXlDTtFitqfmL7+xcYkPhgHCitJWkDueYqnX/RL/6j2jb+PB1/8YzoYUnwCI+Lmk/Kg05Eu8Q1ftxJow3lnrAdRdRYODf+UHlwsg4OQIejKM06v2zw6YV5aA9G4tGfUvxIVF0dg/uoUufZzxmt65L/b4Koc0HxK9la4nEEP/pYXCF7V5+6FNHG8EjoKBW60N8LKKIQXSiKAfEstPmPo0ZyjcrxbAjw= X-MS-TrafficTypeDiagnostic: PA4PR03MB6847: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0SXSjB7+4xKRyKVnEyAyDeZXh2QJPhW7Bb9HkZ/jrO7sAnuVqg6ThKeCj5SzUo0F+BtyMP/Vl0p3O8xft4JA4EWjPAn4VHAr8u6lDquFH7K204cHDY3IIYXpxHiiVVVgaxNPWxAM5i9WpR1PTKj6mWaWEgD7XslFTq2sXRV+Wjx1SLkzuj/XcAIEfMRPHHam8sJ+c4wedWcvoscVq7c6dES1fgp97bPZ58We38LjBX7/5m7FIWRBV344q/StLkSNw/7vlvKw9H/DdLSfZjYHk/vlwSQKxxDtvC1eCVMpoA/cYtk9YbT0zqP/2vo8Xz5x0UJjxl88HSB7ArBbcEfgTJEhSQZRABgdSIby3zIGk5NEN+p3Qe/gBkwfE/a7UfBbZ3YFtb+e1Xeu9njs+1jdzMAOMz5u4YJTc+9xc6DGkDNOFlFX9Quy9gWpsHAstZJ7 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r+Qv4thMG+2899yc4RlBYk+0KoslgpopizjiMs49kRpqtREJmGvw1h4AYwR4oqPgFiiKbwQhdqRztQx7DynX+jgYiG8FYEK1OebT00kRiqFB1Ihrx5LZ8S14e1AMs23JR92uuUK64t3lJflUnTtqnw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 013ab36b-3813-4295-97a2-08d9841830e6 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:42:48.6993 (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: PA4PR03MB6847 Subject: [FFmpeg-devel] [PATCH 002/218] avfilter/vf_fieldorder: Remove always-true check 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: kc9KRc/q+09L A filter's formats.query callback is only called after all the inputs and outputs have already been created. Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_fieldorder.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c index d34119c920..40bfd6549f 100644 --- a/libavfilter/vf_fieldorder.c +++ b/libavfilter/vf_fieldorder.c @@ -46,7 +46,6 @@ static int query_formats(AVFilterContext *ctx) /** accept any input pixel format that is not hardware accelerated, not * a bitstream format, and does not have vertically sub-sampled chroma */ - if (ctx->inputs[0]) { const AVPixFmtDescriptor *desc = NULL; formats = NULL; while ((desc = av_pix_fmt_desc_next(desc))) { @@ -59,9 +58,6 @@ static int query_formats(AVFilterContext *ctx) return ret; } return ff_set_common_formats(ctx, formats); - } - - return 0; } static int config_input(AVFilterLink *inlink)