From patchwork Wed Apr 19 19:52:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 41255 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp743599pzb; Wed, 19 Apr 2023 12:53:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZtvYDbghYrcHAA118iw25enS3QOo7oT+gjPxgYF2g/K3IkTfrLLg1wEBgl544XIPCDcs0B X-Received: by 2002:a17:906:2797:b0:953:483e:93f8 with SMTP id j23-20020a170906279700b00953483e93f8mr3504007ejc.16.1681933993778; Wed, 19 Apr 2023 12:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681933993; cv=none; d=google.com; s=arc-20160816; b=uQkmVUbjREXA7GvANN4uIcE4RAuRvaZ9+TjfJ8+dvXqz9UCd2lp5FYPR3f+1LbPrgB HB8hJ3PMZEE5Qq5q8uyyhbeeGx2Pzo8yOfH/oMthpkc4w6lhh7NYlhvpIzNOwEeeL3VH wpfQ+hHe/M472NyZJDd/AEsqzQBqIgoHYWzGCCVPpMJAQmzXK+X63GH0UH9i56/2mbuC DcxJwiQZnNgiWtIJHQYd/6+WB7UvLNxC7lVDSGbNIwI0R9Sm9szPo7ApUdB78pE8h/6O QqSXJa5sHggwouHY1HfWo3XwJQKdZHv3vTTIL81bZ1zcf4hZoCJBeg0AV7qCMRixyYUL EtrQ== 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:delivered-to; bh=gjge/TkcyWC4klfzqYUZrgIOE1kBrvwIBA/WLj7Wd00=; b=r0mY6vUhyCcP+AsQm1au9MTOpAjMbwKaln/+Otc3NViVpTYJ5EMtefVKUUBBrDWFR2 FA1IdUUpaRQ+d8rzB1GIH6Cx9ieESGlxA12W4NupF82WfRlZKUNgdg9rh7zhgPyWJI9m WB416K/uTJRE91YRnVp/PiTvWDfwLM0s+FSoKF5fr2P10IPALWKvtzPp/eo2+vy7GsSl sslrB6XsxBbKUNxp3LokqgVFprIW715VtClLxUlMwNjd0tqBMROYKX8ywNfgTGL/f1aj HM7IevIlWVSlxaDk4Yd5m/sBlc4vReSbEalYVJBtnRLFHTZL5jQKRpI+j9xlgJ6HHvad iCew== ARC-Authentication-Results: i=1; mx.google.com; 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 g17-20020aa7c851000000b00506af240bb1si5884042edt.657.2023.04.19.12.53.13; Wed, 19 Apr 2023 12:53:13 -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; 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 63EC168BE77; Wed, 19 Apr 2023 22:53:04 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4946168BE67 for ; Wed, 19 Apr 2023 22:52:57 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id E7188240D20 for ; Wed, 19 Apr 2023 21:52:56 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id zHy8JYkRBv-C for ; Wed, 19 Apr 2023 21:52:56 +0200 (CEST) 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 mail0.khirnov.net (Postfix) with ESMTPS id CFFA12404F5 for ; Wed, 19 Apr 2023 21:52:55 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 5F6593A0787 for ; Wed, 19 Apr 2023 21:52:55 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 19 Apr 2023 21:52:20 +0200 Message-Id: <20230419195243.2974-2-anton@khirnov.net> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230419195243.2974-1-anton@khirnov.net> References: <20230419195243.2974-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 02/25] fftools/ffmpeg_filter: drop unused AUTO_INSERT_FILTER_INPUT() 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: 78pTArZQ2sri --- fftools/ffmpeg_filter.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 52a5d19351..ea182089b1 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1035,27 +1035,6 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter, return ret; last_filter = ifilter->filter; -#define AUTO_INSERT_FILTER_INPUT(opt_name, filter_name, arg) do { \ - AVFilterContext *filt_ctx; \ - \ - av_log(NULL, AV_LOG_INFO, opt_name " is forwarded to lavfi " \ - "similarly to -af " filter_name "=%s.\n", arg); \ - \ - snprintf(name, sizeof(name), "graph_%d_%s_in_%d_%d", \ - fg->index, filter_name, ist->file_index, ist->st->index); \ - ret = avfilter_graph_create_filter(&filt_ctx, \ - avfilter_get_by_name(filter_name), \ - name, arg, NULL, fg->graph); \ - if (ret < 0) \ - return ret; \ - \ - ret = avfilter_link(last_filter, 0, filt_ctx, 0); \ - if (ret < 0) \ - return ret; \ - \ - last_filter = filt_ctx; \ -} while (0) - snprintf(name, sizeof(name), "trim for input stream %d:%d", ist->file_index, ist->st->index); if (copy_ts) {