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 ESMTP id 85DEB491EA for ; Thu, 7 Mar 2024 04:06:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 63AAC68CD95; Thu, 7 Mar 2024 06:06:02 +0200 (EET) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9710B68B43D for ; Thu, 7 Mar 2024 06:05:55 +0200 (EET) Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id 3ECCE1060159 for ; Thu, 7 Mar 2024 04:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1709784355; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=dUch8RKImYoq/4T8cqhWNYZF33p0mqYnAjn7U/FXcvU=; b=nezlZ5+pj8fTM4IaKTAKGZodvcRS9b3Q3FGv92kWkQ1vcacApJAivkdC+ark00W1 ESPkntbVyyRENw8L8XqCKTLvM7rtVceRDhUoyWEWVvERsZPrqjzgoKylJf1Ho6celti fsaSvaWpWAJuFPAFF2yyU8VyDmiNTbVRmkYPAm8p1dsCvuyfnWjAxgin8clZvyHS8cQ K638DKCfYmX5VkkPwudRt5VKited6WoXUyFf+LEHkNKzZ6kWb6kQrvHhkg2uCkG0iJQ ic8Yas3699iP1m500t/nREcUr5+4yr5nf29oVy73DMF8rk+7V0ggTiyoaei3BtPu6U9 6rEWxRyA+w== Date: Thu, 7 Mar 2024 05:05:55 +0100 (CET) From: Lynne To: FFmpeg development discussions and patches Message-ID: In-Reply-To: <20240306052559.2762518-1-haihao.xiang@intel.com> References: <20240306052559.2762518-1-haihao.xiang@intel.com> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] lavfi/vulkan_filter: fix input format 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 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: Mar 6, 2024, 06:26 by haihao.xiang-at-intel.com@ffmpeg.org: > From: Haihao Xiang > > Otherwise s->input_format is always yuv420p. > > This fixes invalid output format for hwframe download in the command > below: > ./ffmpeg -init_hw_device vulkan -f lavfi \ > -i testsrc=duration=1,format=nv12 \ > -vf 'hwupload,format=vulkan,scale_vulkan=1024:768,hwdownload,format=nv12' \ > -f null - > > Signed-off-by: Haihao Xiang > --- > libavfilter/vulkan_filter.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavfilter/vulkan_filter.c b/libavfilter/vulkan_filter.c > index d3dc2fdacb..cef42eeb4d 100644 > --- a/libavfilter/vulkan_filter.c > +++ b/libavfilter/vulkan_filter.c > @@ -187,6 +187,7 @@ int ff_vk_filter_config_input(AVFilterLink *inlink) > s->input_frames_ref = inlink->hw_frames_ctx; > > /* Defaults */ > + s->input_format = input_frames->sw_format; > s->output_format = input_frames->sw_format; > s->output_width = inlink->w; > s->output_height = inlink->h; > LGTM Thanks _______________________________________________ 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".