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 9020244ECC for ; Mon, 28 Nov 2022 04:44:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 23EC368B3C7; Mon, 28 Nov 2022 06:44:08 +0200 (EET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BD5D46806F5 for ; Mon, 28 Nov 2022 06:44:01 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669610647; x=1701146647; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PLjVAp/u2Po6VIfXC5m+c9CKij2ALQyADJinprMGNYk=; b=LTNiIoatLPgBdx3GKoMx5lGpYvqh/SmFnIpZydpusBqDs6ecgLXE9eHn HcZD5Vg/IvqFppR6EIR/3irzwMxyeDo79CCdUosOMWcNED7XqTjOMiDCV BTpxFu/sQmUJVE4s78wHSSuH/p87aAk0JQFvCfg26qMWc5nF0gokwQ/CX AeHfnU7SpaKwCQU6C1ClFMHMDNPJ4ayroehkeuiMqBgncWhZRowPMJ163 Oh2yXfID5wiIluLB3XZDl1y+c++Xo+z0L7ThBFNFQXx0Wq+rkbDH1itWb o6nUSIHIVbCRPjuhl9ZX6BQCvPTO5dH49iCMnC2Wx0DC51nd9p157TtVk Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="302321151" X-IronPort-AV: E=Sophos;i="5.96,199,1665471600"; d="scan'208";a="302321151" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2022 20:43:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="888272542" X-IronPort-AV: E=Sophos;i="5.96,199,1665471600"; d="scan'208";a="888272542" Received: from xhh-tgl64.sh.intel.com ([10.238.2.19]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2022 20:43:57 -0800 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Mon, 28 Nov 2022 12:43:18 +0800 Message-Id: <20221128044321.613550-1-haihao.xiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 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".