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 085E0475F4 for ; Sat, 14 Oct 2023 16:36:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C645368C6D1; Sat, 14 Oct 2023 19:36:51 +0300 (EEST) Received: from out-198.mta1.migadu.com (out-198.mta1.migadu.com [95.215.58.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B47DE68C604 for ; Sat, 14 Oct 2023 19:36:45 +0300 (EEST) Mime-Version: 1.0 Date: Sat, 14 Oct 2023 12:36:42 -0400 Message-Id: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. To: "FFmpeg development discussions and patches" References: <20231014035957.66508-1-zgzf1001@gmail.com> In-Reply-To: <20231014035957.66508-1-zgzf1001@gmail.com> X-Migadu-Flow: FLOW_OUT Subject: Re: [FFmpeg-devel] [PATCH] libavcodec/dxva2.c: fix dxva2 does not support H264 baseline profile 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: , From: Benjamin Cheng via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: Benjamin Cheng , xyz1001 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: On Fri Oct 13, 2023 at 11:59 PM EDT, xyz1001 wrote: > dxva2 fail to init when decode h264 with baseline profile becase `prof_h264_high` does not contains `AV_PROFILE_H264_BASELINE` and `dxva_check_codec_compatibility` will return error prof_h264_high uses either DXVA2_ModeH264_E or DXVA2_ModeH264_F, which only supports up to H.264 High, and H.264 Baseline has features that are not in High. You have to use a different DXVA profile for Baseline. > --- > libavcodec/dxva2.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c > index d7bc587562..e6b83f89cc 100644 > --- a/libavcodec/dxva2.c > +++ b/libavcodec/dxva2.c > @@ -61,7 +61,8 @@ typedef struct dxva_mode { > static const int prof_mpeg2_main[] = {AV_PROFILE_MPEG2_SIMPLE, > AV_PROFILE_MPEG2_MAIN, > AV_PROFILE_UNKNOWN}; > -static const int prof_h264_high[] = {AV_PROFILE_H264_CONSTRAINED_BASELINE, > +static const int prof_h264_high[] = {AV_PROFILE_H264_BASELINE, > + AV_PROFILE_H264_CONSTRAINED_BASELINE, > AV_PROFILE_H264_MAIN, > AV_PROFILE_H264_HIGH, > AV_PROFILE_UNKNOWN}; _______________________________________________ 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".