From patchwork Fri Dec 10 19:05:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Jianhua X-Patchwork-Id: 32260 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp2205455iog; Fri, 10 Dec 2021 11:05:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWITBSZmGhK1WQom1YJSVJ4Rn3/ZMko64NPtqBbceNIT2sV25mQ3DhFzujML2tBwpJc+pH X-Received: by 2002:a17:907:98f6:: with SMTP id ke22mr26004306ejc.500.1639163158904; Fri, 10 Dec 2021 11:05:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639163158; cv=none; d=google.com; s=arc-20160816; b=OJaPxTi8dqh2YIKrQBzsfPzXNdSz0i+3wcXGgdZSMp1wZ8UxiOK2+/DkKZI7cw16wM 75HCZ4qrsSzdmnUzItuPhf7ieYVzO3F3tnTNErxy5xQTESsKug8qI+XJuZq0okSOrQZs aRmdZNfQx1E5nVbl5y6mmW6zamcJ5KI+AeaMG3GOUzFK4qDTRRr+FLR8vDQ5lz9D0u+i 1UAmfMh9N9w7bdsPXdY+zQdMNN2w0nBBnEgncq7pXFtvHIOGoPP7KV2DCpo0R+9Gp3Pm jX6XgDFlrGvI5QRvVQF8nnpsPtlpQftM9DuL9MFUtpFW4w8bb9XglChFuwqwWLga/A1m G3mg== 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=FFWSSKxlVUlDUeORijr6bh3FtSXrkKXToniJxrNYDaY=; b=msPVOxQnVG5UIqZve3dxBfiO7/zv1sDFeFR7v5VYhTUlhjdaGBnVBJmJT2GipJGkpN Y9uWODmoj58u4GLm22BhOMkx7EVI3fAub9T5b9vbAO1ixljLZ36kW4OOZ5tdTAYuNFDy FUZj+8+0FYtXfLCDbdNDcPoIAJqQjLvNhlkF7EsrAI0RIipb875uBftogTIbwWjB33Xq COMzDJV8ZU51H8SPdEueMT3+kv6+3ISo7SVY08AIdltUePMPG5sdCUJlYyFzD6OMBHnP AkJVZIWtFsyk4tDbd8hoRfJqLfndBeJUZY71xCGhAtRSWCRWjixkdMsjatBXBZZGnKpj u0mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=JA8HtDWD; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r18si6898745edd.401.2021.12.10.11.05.55; Fri, 10 Dec 2021 11:05:58 -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=@intel.com header.s=Intel header.b=JA8HtDWD; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6792868AF10; Fri, 10 Dec 2021 21:05:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 012A568AECE for ; Fri, 10 Dec 2021 21:05:18 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639163124; x=1670699124; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0pPXAHKvhRxByxhft/0K0Eior5BVVOOE7Jl2btxCviY=; b=JA8HtDWDNqtWfOhkBBfTri34Olmie2I+N/LIdT6EWlB5WDEFl1LQxT2e sDUkyLrCCg3mKiTWdvVGOZQVdh0gQmMQ7rrCs7jFKzqIztjtm6pIASzr9 z+MAO1LB4+K3kQ0t7iLLfV7SzBhT4BnCjzR0o71wRfu1IFVdTcprng9F5 BYeiwpcsb7Oprgg3NyylYx8siLMSeB2PZNefd2cNLs0xbMpO+asAFTltM 9Ewxo+OxHPB0AtE0JHN71EIYTEvdhG5ucWeBMe100/bUwtXQHn5o8bQn4 V6aqZDUsrz4Kqly+x0Qt6uAKQ1LvsfFv5NiggxRP9nEqv7jsbqT3o0A3s A==; X-IronPort-AV: E=McAfee;i="6200,9189,10194"; a="238363006" X-IronPort-AV: E=Sophos;i="5.88,196,1635231600"; d="scan'208";a="238363006" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2021 11:05:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,196,1635231600"; d="scan'208";a="463772322" Received: from chenwenbin-z390-aorus-ultra.sh.intel.com ([10.239.35.110]) by orsmga006.jf.intel.com with ESMTP; 10 Dec 2021 11:05:12 -0800 From: Wu Jianhua To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Dec 2021 03:05:03 +0800 Message-Id: <20211210190503.4015128-4-jianhua.wu@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210190503.4015128-1-jianhua.wu@intel.com> References: <20211210190503.4015128-1-jianhua.wu@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/4] avfilter/vf_transpose_vulkan: simplify config_props_output function 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: Wu Jianhua Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: xDZx2eyAoGzu It's no need to assign outlink here, which has been done in ff_vk_filter_config_output already. Signed-off-by: Wu Jianhua --- libavfilter/vf_transpose_vulkan.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libavfilter/vf_transpose_vulkan.c b/libavfilter/vf_transpose_vulkan.c index eceb9b9011..ce83cf0fd7 100644 --- a/libavfilter/vf_transpose_vulkan.c +++ b/libavfilter/vf_transpose_vulkan.c @@ -262,7 +262,6 @@ static av_cold void transpose_vulkan_uninit(AVFilterContext *avctx) static int config_props_output(AVFilterLink *outlink) { - int err = 0; AVFilterContext *avctx = outlink->src; TransposeVulkanContext *s = avctx->priv; FFVulkanContext *vkctx = &s->vkctx; @@ -271,21 +270,13 @@ static int config_props_output(AVFilterLink *outlink) vkctx->output_width = inlink->h; vkctx->output_height = inlink->w; - RET(ff_vk_filter_config_output(outlink)); - - outlink->w = inlink->h; - outlink->h = inlink->w; - if (inlink->sample_aspect_ratio.num) outlink->sample_aspect_ratio = av_div_q((AVRational) { 1, 1 }, inlink->sample_aspect_ratio); else outlink->sample_aspect_ratio = inlink->sample_aspect_ratio; - err = 0; - -fail: - return err; + return ff_vk_filter_config_output(outlink); } #define OFFSET(x) offsetof(TransposeVulkanContext, x)