From patchwork Fri Apr 5 16:11:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 47842 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:24a8:b0:1a3:b6bb:3029 with SMTP id m40csp1070167pzd; Fri, 5 Apr 2024 09:15:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX2+a1SPr9M+44X2ddDTF5wpGUX7+5Fk6cjt/Yw1r2MvQJzqizd9Dpxpxe9PAT/HX4IF9Py33QscmvS2pjImSMyPWDPiDHnpguJJw== X-Google-Smtp-Source: AGHT+IEpO73G4c1awhh7T7aiscPDuvLsHdas8ZniCB6hUacH17CZygECBHQBnRFCND9ru2RacURm X-Received: by 2002:a50:d599:0:b0:56c:5990:813e with SMTP id v25-20020a50d599000000b0056c5990813emr1453332edi.13.1712333718337; Fri, 05 Apr 2024 09:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712333718; cv=none; d=google.com; s=arc-20160816; b=Q/DvwZ4RdYRW162eWvouw6jRm0xBuyKVN733MBEw+UHrGcv82AXUK/ZmQXVR3Wvrrg +W21+YtuoBTUebPhL1bKai8YyUVymQ5TE+0Jzh9fwEt6evUUb4/qQ+Zue0uVYXE/c/Ce ytkFgOdvFQrVhd1eoFs/q5sZNATHfqXMFVEqZWFloU6UuOinWjnciagxM//CZw0BVvQQ Olu4d3yQA0mJHVm3PbTqtXpe0CpYsPLXV9dK36fOwRsHWmLTKmCxYJ6hGwIEjll+d/D+ KOqYMUDjGtF63/czwMZPwAsDs/ttevYcBG7+2pfRN/QLpQS41XFUGOjWPfNjMknXOQC8 m6KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=SRMbfQRIJHP1ZDBOQDYC4a1xHugeEiqOZLZ7LooyAK8=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=BA66JcA0JfpbFni3Mo7LzjSKd9Z4eqG11lXtMMaZzhGv4d8+pY2ELzjz8lFedMTcI5 r+dRXkddzAhnOo82x73IJ8pp4fK0n27FZ9w4oU997Ewu1iLiScvAXxEZlAWrov6RGZnv kFkBnxzRHtPgCVw8hTycgh8TaruamVEEpSgOl4e3cFEpud8sA3UucwuWIL9A4WHmRPeU gLnVjdzL/J3Lf9q3JIoJJfiKpgKNYJjGQU/f/n9st9Og55K1yhjoVwbjoLSjey1YRD6O HT6VUGKa5F33xWjEFkR2uZFK/ymOZJXi8kA130fBh8S5PHHZDxQSmaLMM2yuP7tOmA+b SXqg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b="h7O5H/tX"; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a15-20020a05640213cf00b0056e35a7b0d5si378824edx.390.2024.04.05.09.15.17; Fri, 05 Apr 2024 09:15:18 -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=@khirnov.net header.s=mail header.b="h7O5H/tX"; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DF34D68D25F; Fri, 5 Apr 2024 19:13:23 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 56A8E68D189 for ; Fri, 5 Apr 2024 19:13:10 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=h7O5H/tX; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id D94AB4D8C for ; Fri, 5 Apr 2024 18:13:06 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id ebzqU8dLzwKl for ; Fri, 5 Apr 2024 18:13:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1712333582; bh=MYyh6JhpJ3p6aC8RdXJjeSMVfoaxQXmHIPV4fBf/vd8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h7O5H/tXbcNzG+K4/fcpQksgKFoLgIj275YNXDDu75YuaKujpU/qHQL2ZfW5syXVB 988IlWHNnP6Zu3ee4ZwSzWvEypGe6+1y30ugowgHjek0u6Bq5dZNeXD6YwC66lTEGW 2YU3r6UMs3fB+ZYt+AJ/GivyFHxN38fps6FtoSDCsRjgtMhWKx3VmqAaHloJ3ZyiwU CV1pqAuyCgnV8Q+hpO73Oa19Nnpuyu5wVRYq2ppfNFlXU/CRbHUOT51K4/56rf+2Rv QH1jSb1KlwriYKCTown+6Ylq/QP++nLtUU01CI3ZXetP8hFX6Yr16QJ0KU8KXxzpgc IvcvS4navDs0Q== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 561464D89 for ; Fri, 5 Apr 2024 18:13:02 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 2F7113A134E for ; Fri, 5 Apr 2024 18:12:56 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 5 Apr 2024 18:11:57 +0200 Message-ID: <20240405161212.26167-16-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405161212.26167-1-anton@khirnov.net> References: <20240405161212.26167-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 16/31] fftools/ffmpeg_filter: simplify retrieving filter type 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: H7t57WSbPEuo --- fftools/ffmpeg_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 41d96267bc..ffbc13eb70 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1472,7 +1472,7 @@ fail: static int configure_output_filter(FilterGraph *fg, AVFilterGraph *graph, OutputFilter *ofilter, AVFilterInOut *out) { - switch (avfilter_pad_get_type(out->filter_ctx->output_pads, out->pad_idx)) { + switch (ofilter->type) { case AVMEDIA_TYPE_VIDEO: return configure_output_video_filter(fg, graph, ofilter, out); case AVMEDIA_TYPE_AUDIO: return configure_output_audio_filter(fg, graph, ofilter, out); default: av_assert0(0); return 0;