From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id CADCD48830 for ; Wed, 19 Feb 2025 17:30:37 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9556B68C2E5; Wed, 19 Feb 2025 19:30:11 +0200 (EET) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0D4A068C14E for ; Wed, 19 Feb 2025 19:30:02 +0200 (EET) Received: from haasn.dev (unknown [10.30.1.1]) by haasn.dev (Postfix) with ESMTP id C1EA240BFD; Wed, 19 Feb 2025 18:30:01 +0100 (CET) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Wed, 19 Feb 2025 18:29:58 +0100 Message-ID: <20250219172958.197132-3-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20250219172958.197132-1-ffmpeg@haasn.xyz> References: <20250219172958.197132-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] avfilter/vf_libplacebo: set colorspace properties on all inputs 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Niklas Haas There is no reason to only do this on the first input. It doesn't actually matter for now given that we don't constrain the color space list, but it may matter when that changes. Signed-off-by: Niklas Haas --- libavfilter/vf_libplacebo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c index 6eeda7f252..801afe1bee 100644 --- a/libavfilter/vf_libplacebo.c +++ b/libavfilter/vf_libplacebo.c @@ -1154,14 +1154,12 @@ static int libplacebo_query_format(const AVFilterContext *ctx, RET(ff_add_format(&infmts, cfg_in[0]->formats->formats[n])); } RET(ff_formats_ref(infmts, &cfg_in[i]->formats)); + RET(ff_formats_ref(ff_all_color_spaces(), &cfg_in[i]->color_spaces)); + RET(ff_formats_ref(ff_all_color_ranges(), &cfg_in[i]->color_ranges)); } RET(ff_formats_ref(outfmts, &cfg_out[0]->formats)); - /* Set colorspace properties */ - RET(ff_formats_ref(ff_all_color_spaces(), &cfg_in[0]->color_spaces)); - RET(ff_formats_ref(ff_all_color_ranges(), &cfg_in[0]->color_ranges)); - outfmts = s->colorspace > 0 ? ff_make_formats_list_singleton(s->colorspace) : ff_all_color_spaces(); RET(ff_formats_ref(outfmts, &cfg_out[0]->color_spaces)); -- 2.47.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".