From patchwork Wed Sep 6 06:00:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 43585 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4f16:b0:149:dfde:5c0a with SMTP id gi22csp2311130pzb; Tue, 5 Sep 2023 23:02:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRAoHK9XYnH2rnKdmcC3cLsSykgYDGNrLZoeMciohQo9Xd9w0KEKbIVm2+7lhmHdw23Hjs X-Received: by 2002:a17:907:2c4f:b0:99d:fc31:242f with SMTP id hf15-20020a1709072c4f00b0099dfc31242fmr1381830ejc.66.1693980153253; Tue, 05 Sep 2023 23:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693980153; cv=none; d=google.com; s=arc-20160816; b=FFJwAXjoOnex7k/pJUNowlJfGC5kp/W+lbePKGZrUuKMxHOAIb/BvvPHn0h26wkEv2 Wio/E3XaGYKuv8ZA6OGJwH9l+VmJa0OAvdW7zQHslLuVz7Fru37sxwgId4/3TfYilRdF DI4acdcfQD8nU4x61apIOPVfxWWllLtniuPGT46APIRuzzfA6xVgH4WrRiqOkS1IGLP/ gBCyGr15cc8yMxoGeoiIquaZpCLTfg/3jhehGIoB4Y1yYxTYcC/MwSE5mJ0SjHIJ0uj/ AMQlbKfq2Wmkw8ebXOtl/qEO31vlx5z8k2tJSuEB6NAgX3mYLuMt/WErqWtnoeuEgmkH dQCQ== 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=3o2pU8FjfnLgRTfo3qcrCWKXMK9HXFBnzU74cJgyt3A=; fh=1kpmTRI1sW42eNCnNMby7VLIISQBX6KJuVYxOEG0t2A=; b=c24BTQgD0ApeHWFW8OleT4estfGKwd/ngpeUfCLao7f7Chshbl8pOsNkvv7KfGgBWS j1xLqPS9qSDR1ZoZCj0/hyIiDVf5dcmYSZVwHbfZRG1wa0eBqlRHXCUI6LOs+GNJIte1 MPJBItDRrJaqn3TbkUV3X0kVn/AUbySv5cT2YCnpRnwEVCuIHyQB6olqx7gb6vOkq3z3 F6mlG5Y8Y9/TV1Hifb4Cfr15Cuy6ETbjsdZhM08lnn3Xo6l1ZsZrZ4mTRmQIlkkZHxbp QuXp3IO5BLReucJUQOomgTGXy14420sVVEDfKCsyka08ReHkyaHXw9ahLwAJYcHLi/Ot qMbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=ZEOqRSS2; 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 i19-20020a0564020f1300b0052e1f352fd9si4397733eda.650.2023.09.05.23.02.32; Tue, 05 Sep 2023 23:02:33 -0700 (PDT) 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=ZEOqRSS2; 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 93AF468C3B8; Wed, 6 Sep 2023 09:01:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9CF4F68C7CB for ; Wed, 6 Sep 2023 09:01:30 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693980091; x=1725516091; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EjjhjehYIg/paTUgQquVzN6CR+0HvE7iW72CZlbyo9c=; b=ZEOqRSS2kipywusAfBjYCBKl6Ru8bt784Qy5oHVtwHTXicYkbfP9Yp3P 2Gw1rAZDRY8XENruEtLbJYPo0TbQYo7YYUkzNN83YjnvzoW3EZym/gpSb hwXSDYbS9HGCobNMUEfvn4ThfWoL7BeWUUnSqseBkrFCRBq90nCIfj9Eu 0jlGU92F1ozh2o5ZBsLzIjb5m9csUlcCVyXxo3Nee6X3RuR9orui4cgAn 9g/oiFRKmu+xfvVf2Bn1kzMP9xE+14cFGE2B9sy9o2fosnnnwyovTemAH u2pFMiVqcUHVhaW1Gchr1zjdkmr+wIR1fdNlZylkfuPJ8/bkFsbDJ3hin A==; X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="374372441" X-IronPort-AV: E=Sophos;i="6.02,231,1688454000"; d="scan'208";a="374372441" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2023 23:01:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="734919061" X-IronPort-AV: E=Sophos;i="6.02,231,1688454000"; d="scan'208";a="734919061" Received: from xhh-dg264.sh.intel.com ([10.238.2.76]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2023 23:01:18 -0700 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Wed, 6 Sep 2023 14:00:48 +0800 Message-Id: <20230906060052.698620-9-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230906060052.698620-1-haihao.xiang@intel.com> References: <20230906060052.698620-1-haihao.xiang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 09/13] lavfi/qsvvpp: set right mfxFrameInfo for frames in dynamic frame pools 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: Haihao Xiang Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: OX4ZUOi07l97 From: Haihao Xiang Signed-off-by: Haihao Xiang --- libavfilter/qsvvpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 5cdba7d54a..d09140d89b 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -307,7 +307,7 @@ static int fill_frameinfo_by_link(mfxFrameInfo *frameinfo, AVFilterLink *link) frames_ctx = (AVHWFramesContext *)link->hw_frames_ctx->data; frames_hwctx = frames_ctx->hwctx; - *frameinfo = frames_hwctx->surfaces[0].Info; + *frameinfo = frames_hwctx->nb_surfaces ? frames_hwctx->surfaces[0].Info : *frames_hwctx->info; } else { pix_fmt = link->format; desc = av_pix_fmt_desc_get(pix_fmt);