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 3C5544A417 for ; Thu, 28 Mar 2024 02:09:12 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 85B2268D6E4; Thu, 28 Mar 2024 04:09:10 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E8B4E68D20C for ; Thu, 28 Mar 2024 04:09:03 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711591749; x=1743127749; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=u1A8szWwVh2dqyAeht8m/NcFahO63pTj4T7rMoXCmIs=; b=SwZVZzyPMoBy6XXhcSE3rRf5FcOIbsd6ajHIsLnFoE22BfBuJFuIS4Xz 4UkrFGRVy62A1gj5rIMRwY7TMVvS3hipzBHMYx8Q2qj/n1l8mTvvHZWxm DKAFJq/zxP7FpofaoEU4UrZn2w0LzGrJois6R5wfwhhohcKrSZeW3iZas lbXamEYk5PlNfq4xxy8wQaKOtM/zrmOgxkDV/g9FuJzb4jyGvHTTjNz5C mgI/kwkikbUzmL+AdT4B66KmZWZDgyN9tR2D3PBFhObxD4J4yYMd7gFXV NLyKMXqU1GWytFajMTNhTbzmkUq06REKItQlphTEKrbl2WVmQKCQbzPcf g==; X-CSE-ConnectionGUID: GyPIPmBYRVyAnXz5hNa0UA== X-CSE-MsgGUID: Vuc8CiU0TiS/qOkdJqK64w== X-IronPort-AV: E=McAfee;i="6600,9927,11026"; a="10518371" X-IronPort-AV: E=Sophos;i="6.07,160,1708416000"; d="scan'208";a="10518371" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2024 19:09:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,160,1708416000"; d="scan'208";a="47697651" Received: from xhh-dg264.sh.intel.com ([10.238.2.76]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2024 19:08:59 -0700 From: "Xiang, Haihao" To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Mar 2024 10:07:04 +0800 Message-Id: <20240328020704.4109636-1-haihao.xiang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavc/vaapi_hevc: Add support for Main Intra & Main 10 Intra 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 Both Main Intra and Main 10 Intra are Rext, we may use Main and Main 10 instead for decoding. This patch fixes the error below: [hevc @ 0x55a771b80a00] No support for codec hevc profile 4. [hevc @ 0x55a771b80a00] Failed setup for format vaapi: hwaccel initialisation returned error. Signed-off-by: Haihao Xiang --- libavcodec/vaapi_hevc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index 3bdd2dd1b8..83b94d1a55 100644 --- a/libavcodec/vaapi_hevc.c +++ b/libavcodec/vaapi_hevc.c @@ -612,6 +612,13 @@ VAProfile ff_vaapi_parse_hevc_rext_scc_profile(AVCodecContext *avctx) av_log(avctx, AV_LOG_VERBOSE, "HEVC profile %s is found.\n", profile->name); } +#if VA_CHECK_VERSION(0, 37, 0) + if (!strcmp(profile->name, "Main Intra")) + return VAProfileHEVCMain; + else if (!strcmp(profile->name, "Main 10 Intra")) + return VAProfileHEVCMain10; +#endif + #if VA_CHECK_VERSION(1, 2, 0) if (!strcmp(profile->name, "Main 12") || !strcmp(profile->name, "Main 12 Intra")) -- 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".