From patchwork Wed Jun 14 16:49:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 42082 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c526:b0:117:ac03:c9de with SMTP id gm38csp192161pzb; Wed, 14 Jun 2023 09:53:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oxDFwlrFQ7D87e/Y7tE/ETFFTXCHR6UQiiuZdLHYrKzLzFBqQUGwwD40KaAITRcZVOMQZ X-Received: by 2002:a17:907:2d86:b0:96a:ee54:9f19 with SMTP id gt6-20020a1709072d8600b0096aee549f19mr17989061ejc.48.1686761605834; Wed, 14 Jun 2023 09:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686761605; cv=none; d=google.com; s=arc-20160816; b=ni5U/O27yfy/zU52UygLbgVDI52/dO6kjqk2BZJFAoiAU+VRjYZ/6U22g7XxcZza67 FBjG8KV6dyH8FdTqPnpq4MaQ4Uql1rrchVQS5lvN0EM/OVJ00HMKlbF3BhX3YkBJc/3G fUgmAB7vXduHwixRLz6lLyYGgIAwHuRchFYNuXY18ZaQl/UC0hYD7R/GpJPPtC9hbO1N zQ8MexAOnPYW8evXFbCzlnbz2YjYhUE7KwnESuNxQUERiob8q6hRWQr68dtWOhGXXfnW 10+1zjgz8Cio5RU/ut97/hOe9EaGPPy8D+7jpMfLQL6KVa06hfrvIsvK84j56/d+vEio Hq4Q== 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=2oAxQHI5AK6adqQtoBB4+Qkz3ZAqymIEfOHbEWx2W+k=; b=y+SHfAaEz2TyNGiCLS1Sreb5nmklUUkCAWbb5BdunqV2FPEaeyvCtQAZKf3DvWGIS+ iSxbHzlcUGs91OBv+IQMkcQdp8jaLqnsURADSuTyk/sdv3rMFeRCGSjdkqcQLnaBHakB yZ/HNfLAnYjpq96+33IuM1S0SZvYAAWqDl1vklJmEORswAHkPyKFjWrpNDW+Z6fRBiD1 ivOyE1r+gwpf5XGzYKy09gn961QIjbvMOdsrybvvC2Yastt1CPEn554xPJN6F+EoEkwg +MhofKxCPqbYR+wTiKsVjbLand0TM0ZtCWre47Z0yeFO+KUeZ5U+E/A5V136PE0UVL/P PqGA== 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 ko17-20020a170907987100b0096acf19c1b8si8153838ejc.28.2023.06.14.09.53.25; Wed, 14 Jun 2023 09:53:25 -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 4847368C51F; Wed, 14 Jun 2023 19:50:20 +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 03F5C68BFCE for ; Wed, 14 Jun 2023 19:50:01 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 8CBE4240177 for ; Wed, 14 Jun 2023 18:50:00 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id mSGRCVWZ_Gh3 for ; Wed, 14 Jun 2023 18:50:00 +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 0EE172406CE for ; Wed, 14 Jun 2023 18:49:54 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id B2E2E3A09B3 for ; Wed, 14 Jun 2023 18:49:47 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 14 Jun 2023 18:49:00 +0200 Message-Id: <20230614164908.28712-13-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230614164908.28712-1-anton@khirnov.net> References: <20230614164908.28712-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 13/21] fftools/ffmpeg_filter: make configure_filtergraph() static 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: WSuQX2MZMOVv It is no longer used outside of ffmpeg_filter. --- fftools/ffmpeg.h | 1 - fftools/ffmpeg_filter.c | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 8de8e94e31..80d9ab52bc 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -726,7 +726,6 @@ const AVCodec *find_codec_or_die(void *logctx, const char *name, enum AVMediaType type, int encoder); int parse_and_set_vsync(const char *arg, int *vsync_var, int file_idx, int st_idx, int is_global); -int configure_filtergraph(FilterGraph *fg); void check_filter_outputs(void); int filtergraph_is_simple(const FilterGraph *fg); int init_simple_filtergraph(InputStream *ist, OutputStream *ost, diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 54c7ed1f5c..ccde5b26ec 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -133,6 +133,8 @@ static InputFilterPriv *ifp_from_ifilter(InputFilter *ifilter) return (InputFilterPriv*)ifilter; } +static int configure_filtergraph(FilterGraph *fg); + static int sub2video_get_blank_frame(InputFilterPriv *ifp) { AVFrame *frame = ifp->sub2video.frame; @@ -1496,7 +1498,7 @@ static int graph_is_meta(AVFilterGraph *graph) return 1; } -int configure_filtergraph(FilterGraph *fg) +static int configure_filtergraph(FilterGraph *fg) { FilterGraphPriv *fgp = fgp_from_fg(fg); AVBufferRef *hw_device;