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 96052492FE for ; Wed, 8 May 2024 06:05:46 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 54F8868D63C; Wed, 8 May 2024 09:04:43 +0300 (EEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 05BF768D601 for ; Wed, 8 May 2024 09:04:35 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715148281; x=1746684281; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xmjY+OsvjRX1GpXJZRYddRajGQkmGLixVBbde7YW6uw=; b=F9TO+qBVaQ5iqNZpDg6AYsseHLluxgJr4WtxB9uZxbog7hkE6TimBFkr xT6IEUDX6oFuZAxtP0Yr3CDr9j5ARZ6ZcfatHPHclO1z1zH8SXXbQsAPX 9st2kOegW3VBtVMmA6Y/bpe+jHyIo5Cn67TOE195MIEqF0+x+QoowpsHi 8hmT1F52y1Cz6zC+Y86FCeLQBsR9JsPPxApqoQQ7bcsea3ixp6aAR9KnF q2EltOgd+oAAzBSDvqyAEUo7f5jnrvyxGoEoptMCHK0nyALGtOUqPpri3 2aG2MNltmKI6fQlxHGr2WYmMUuFF4ECKsyScTMNsRSJFuv2UQb/o5StKQ g==; X-CSE-ConnectionGUID: 38axKMqNRiievRwUFi9sUg== X-CSE-MsgGUID: hpzK7zD8Tz2eB+Elc9EvTQ== X-IronPort-AV: E=McAfee;i="6600,9927,11066"; a="10855368" X-IronPort-AV: E=Sophos;i="6.08,144,1712646000"; d="scan'208";a="10855368" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 23:04:27 -0700 X-CSE-ConnectionGUID: w8TRWVzsSvuTOJhrmlbBxA== X-CSE-MsgGUID: taOrf97LTPCyhuaiVUvRig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,144,1712646000"; d="scan'208";a="28828800" Received: from unknown (HELO xhh-dg264.sh.intel.com) ([10.238.2.76]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 23:04:26 -0700 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Wed, 8 May 2024 14:03:15 +0800 Message-Id: <20240508060316.681114-8-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240508060316.681114-1-haihao.xiang@intel.com> References: <20240508060316.681114-1-haihao.xiang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 8/9] lavfi/qsvvpp: use the right mfxFrameInfo when dynamic frame pool is used 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 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: 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 10d970652e..c4c338b36b 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -308,7 +308,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); -- 2.34.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".