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 9538444092 for ; Thu, 24 Nov 2022 09:20:09 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AA1E968B418; Thu, 24 Nov 2022 11:20:06 +0200 (EET) 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" 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: "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; -- 2.25.1 _______________________________________________ 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".