From patchwork Thu Nov 24 09:19:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 39402 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp4408058pzb; Thu, 24 Nov 2022 01:20:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KSvGS64M4TQZ10xBdEN+KFkWQU2Z5ZIGwdHp/lJj4sHlfJl4ewFCo2n5ExcpPlKI706dQ X-Received: by 2002:a17:907:10d3:b0:76f:ab3:c641 with SMTP id rv19-20020a17090710d300b0076f0ab3c641mr17584301ejb.51.1669281611224; Thu, 24 Nov 2022 01:20:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669281611; cv=none; d=google.com; s=arc-20160816; b=WBE8Jgy42GyHXZl4R1XMvzIivAdns5o9nw5gHxbwPuD0Mtu77rl/hUhfeyAHsFgLbT drCRUWUqQ4fG7STRW1PBa/Om5oSRw1jEcYPxTAkMwXRk8K86XG2bYRATvFpRO7WuuFOL ix+pg2bQYJw9r6DyDQHzaZ1XNyxbHp6RqjCntDP7p7+xSvDg174hDj8kUMwplDb28of8 UHnqzCNyH0W8ZQS26QHxIE6Wtm+nUmtCk+lh0Q1K1d2xpsL4TP6lFOWX7Ikx/J67i0cK tdh/uWtxBr7djWrk8gW/0NfHfeCzae8xT/qaQXqOqhw+v49kIx1+v0p6HiNK0b74hrGj IpDg== 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:message-id:date:to:from :dkim-signature:delivered-to; bh=wzewmewzXwN1fYWI+iHFMI/t/Ab2/2djcUhUPNF5yIg=; b=EogYS27tPfsKJmczHQ8x2JgAuk7SLUHwQKE3Sv7yxGlTA0oT+sCjDsQWM+KGfsfC4l /VaCniPYtXS2IsKZ9JcX90EkmANa12K4DayCjOBcUJ1EfuQ23Yie/m+FmiR8blx1b0Bl a/oyVBDpqf09H1JJ5ac4JC3nP8cYOCagVHQhLvB/LgP0F1ffAXvT73Vu3tbTx5+IE2md gFzZ1w9pkORqRKNzz0c4BMkc/jM1R+e+keJnb8jcGuMvU759MnVpfselX8g+1AqDd9NC LVc0ySNgcyd9CzgE7mXIKvsib8fTlfwlmcBoDdvvAJcw4A6LCXEF9sKbkfRyLLUjbU6L LmrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=RSV3dkfk; 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 js15-20020a17090797cf00b007adcc8fb7a0si529314ejc.399.2022.11.24.01.20.10; Thu, 24 Nov 2022 01:20:11 -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=RSV3dkfk; 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 0144F68B42D; Thu, 24 Nov 2022 11:20:07 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BD7E868054F for ; Thu, 24 Nov 2022 11:19:59 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669281605; x=1700817605; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PLjVAp/u2Po6VIfXC5m+c9CKij2ALQyADJinprMGNYk=; b=RSV3dkfkHgfQxBN98fhcKQP+fdRVNM9lVSEZmv9/ROpQNbOYjK1OJP7x g1MPP83pV+u3Q9L/UxyvXZLoG6kPigcmS3089Gi7DzNJ3dq2CWQS1Zj5J M7+muOYtE5jVx1AWghv6Mr7QeuxQ7ubd7HRY4EYtvA3hwlie3ATIxaw44 HwdkCJLptS0pTx5st+wygH+PO3lFT33nyvcifvjlFf4iHpXxcJgDd06+r eAQych5HpCZqoz1A0AxgX6H/CXj2eSxRGeqJh0H8afV1tQ5pqWgR2esL+ iK6Gv+N5jKM7S8ZgcwQYoS3NbxZk10D4U0p2XiLM5R2mASzgj+RUKvfnZ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="297619601" X-IronPort-AV: E=Sophos;i="5.96,190,1665471600"; d="scan'208";a="297619601" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2022 01:19:57 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="731078343" X-IronPort-AV: E=Sophos;i="5.96,190,1665471600"; d="scan'208";a="731078343" Received: from xhh-tgl64.sh.intel.com ([10.238.2.19]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2022 01:19:55 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Thu, 24 Nov 2022 17:19:27 +0800 Message-Id: <20221124091930.558046-1-haihao.xiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/4] lavfi/qsvvpp: change the output frame's width and height 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: "Chen,Wenbin" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 3YrBTH9kQffE From: "Chen,Wenbin" Make sure the size of the output frame always matches the agreed upon image size. Signed-off-by: Wenbin Chen --- libavfilter/qsvvpp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 8428ee89ab..bf719b2a29 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -487,15 +487,14 @@ static QSVFrame *query_frame(QSVVPPContext *s, AVFilterLink *outlink) if (!out_frame->frame) return NULL; - out_frame->frame->width = outlink->w; - out_frame->frame->height = outlink->h; - ret = map_frame_to_surface(out_frame->frame, &out_frame->surface); if (ret < 0) return NULL; } + out_frame->frame->width = outlink->w; + out_frame->frame->height = outlink->h; out_frame->surface.Info = s->vpp_param.vpp.Out; return out_frame;