From patchwork Thu Nov 9 12:19:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 44584 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4fa4:b0:181:818d:5e7f with SMTP id gh36csp443925pzb; Thu, 9 Nov 2023 04:25:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEirLvncHLOw0OkitMIeWifZo51X2aTGhFe6coHnvZcINRzSRtrYl7zbGGBc52Yqln7Pze5 X-Received: by 2002:a50:d742:0:b0:540:3a46:cdcd with SMTP id i2-20020a50d742000000b005403a46cdcdmr3999104edj.29.1699532756573; Thu, 09 Nov 2023 04:25:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699532756; cv=none; d=google.com; s=arc-20160816; b=V7foJY3O1sGLj5Vth1vEaeOydKGDW+/RFTMboqLTeqT57D9sgJvO4ApUCvbWQjQX3u XIxsPidtZUTvwijGaQX/59fBo7yopPFerN0GGq0CP/0RHztnZgE77MO/p10MbArXWRXv xj+Ji4TcaoAbdqyXQgKB/SlG41MUz4zpNaE8EpVle2DNN9cuqjs3SRiR2SXODJmlc5nS c9y8aykK3Se6uy3KELYV03QIDg+pr/CpJJjaQ/I/5TrOxMdaY/smgqtO4YDYrEwlH56N Piz9Ba5dQpEMMZpDGz51tjlEoSJNorTXQ+wyoaoLWWjKDnUsacQsf2dWfvI1PdzXnoUJ qKvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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=yAyWAYZUmL2E/MOrhXnQoFI0lf+cgWv2lD+Lz6PiQiQ=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=qMN9tsmro00+KiE9Z47C8jsfOA6xHnz17KwLby95EJuR+gyFNYT59Va/j9I//wyhJp sa8uyowv2uPOrjiZ2R8e8SGm9zNIsmByzaQ0Ljcz/aMNcxdeDT79x3Nr/YtMDOrw5Z7x OkE7LUrNLYc2mKXjcGql0+At0TkHNjmuAfivz7DCZmBIH9cdK3qf8thtJj6Djnlp0dWm w0yE54usJmCofbl3czd/CIZvFICCse6/A3lcF2YqFOgFaczdt69dyZNBtnDDTGIroX/T jxTPE1B0vzMt0a3nmPHABHd45ut5BswPFVbp7y6AjJQGwiBZkcFXstYMnSxkvNZRx5fj Z8LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=BsSUHPwx; 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 r17-20020a05640251d100b0053e1cb26246si7539526edd.141.2023.11.09.04.25.46; Thu, 09 Nov 2023 04:25:56 -0800 (PST) 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=@haasn.xyz header.s=mail header.b=BsSUHPwx; 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 D722768CBE3; Thu, 9 Nov 2023 14:25:43 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B217468CB8B for ; Thu, 9 Nov 2023 14:25:36 +0200 (EET) Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id D82E04361F; Thu, 9 Nov 2023 13:25:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1699532735; bh=y4Ns9rwvUK0N8S6GABrTRbeeghSR0jL6bwnzkF7Bvuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BsSUHPwxD/ncsD83KCg4ERFqOzUndXykeyNPzBqp9ULCRCPQWHgMc6oj2kyrZatE9 MXG/0GfdOt1C6FdPIZmdQGvujoshySgHlSOX4F6YzKrySZfMONz8p1bOYEQHWOtIpr S+ax3dx7objJsu2PGSaPji+HSKJIAX55PX6QJiV4= From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Thu, 9 Nov 2023 13:19:33 +0100 Message-ID: <20231109122534.124157-2-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231109122534.124157-1-ffmpeg@haasn.xyz> References: <20231109122534.124157-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 01/25] avfilter/formats: document ff_default_query_formats 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: Niklas Haas Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: YGabCUyTammO From: Niklas Haas In particular, make it clear that this function will not touch format lists which were already set by the caller before calling into this function. --- libavfilter/formats.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavfilter/formats.h b/libavfilter/formats.h index 22224dce2d..d44890109e 100644 --- a/libavfilter/formats.h +++ b/libavfilter/formats.h @@ -198,6 +198,10 @@ void ff_channel_layouts_unref(AVFilterChannelLayouts **ref); void ff_channel_layouts_changeref(AVFilterChannelLayouts **oldref, AVFilterChannelLayouts **newref); +/** + * Sets all remaining unset filter lists for all inputs/outputs to their + * corresponding `ff_all_*()` lists. + */ av_warn_unused_result int ff_default_query_formats(AVFilterContext *ctx);