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 574B947591 for ; Sat, 14 Oct 2023 04:02:37 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 42F4968C69E; Sat, 14 Oct 2023 07:02:35 +0300 (EEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EB29968C69E for ; Sat, 14 Oct 2023 07:02:28 +0300 (EEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6ba54c3ed97so201598b3a.2 for ; Fri, 13 Oct 2023 21:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697256146; x=1697860946; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3yYsX/Tt86Sn1AMe0RLJtcMywUrFN+PwTS8gxc6uQpE=; b=PazMzXmwAbwHa3YRJ6DNmN8BKXADJtCHeq6wZG5qjSJXrm2khRVwUeM0HnTqjtAkkM wQ6IhrEukXtqSx+zsJiSuVD3K2cPUuZvC8/BjqCFYa/xlDxZEG2P1mqr3u52nnAKLsLC PcRV3DVbTw5I8XBnuBThuxJQu4QYEgC1RNAFXkZZKhGl00cqj3cnrTa04+TUgZfA2Nlu TY7x4MuRX3NWzjblEsK8adql2216RAX49C6Uy19L29IYOhuchyYQA5wKaRYHsz2Ylzyu Q3NYony3eOCeMGeyueshnsO8HFEhltGJaXgtID8VDU5Vye8fHZBhVs4kWinDWUKeCaJx deXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697256146; x=1697860946; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3yYsX/Tt86Sn1AMe0RLJtcMywUrFN+PwTS8gxc6uQpE=; b=arDUJAGtTs9KI8rscq0PXCNiQ970GHWyl22fUhFRp+OYzKxrbS1OZEihUSJ6w3TiTT HMxHfucNgezgZq01o8Ke+auNHMSgcuTOeSyyJ7dlBCcsG0048HnRkAwdulovRinJv28+ gBx2SQep5ffgG/N2rZ6YO516gBp8QPNBOHbHsE3sCKcWKkB3f/ISzXjJqJLTqBeN0X1V FO6XM5qzGd9m8ySrRmtU070dz6JUG/nowakhpoNb3ffr0u47CIRyDY3VZajAHT4YkeJP E48QfCujzEpXKg7/OrA79iJ13GO2rVy6bUdGovwGzSxccpSQYVtn5Aou/fJ1Lqt3uE9A itew== X-Gm-Message-State: AOJu0YyMO4inaNiRr1oGKqIInSbL8gWQTTxHJUuv4x2ODGQMx+4wl+rP nWw4uEJ6lrDZDO3lTLUvZXPPXMJ1GrESejeX X-Google-Smtp-Source: AGHT+IGj8gtec/Jq3FmhrEYSp/y1jTvKglz+0svjY7LMEMROa2wcrUHNLOltazf20Af/d148N+vaCQ== X-Received: by 2002:a05:6a00:1956:b0:68c:1004:1feb with SMTP id s22-20020a056a00195600b0068c10041febmr31810586pfk.32.1697256146324; Fri, 13 Oct 2023 21:02:26 -0700 (PDT) Received: from localhost.localdomain ([203.90.233.56]) by smtp.gmail.com with ESMTPSA id i29-20020a056a00005d00b006934704bf56sm1893604pfk.64.2023.10.13.21.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 21:02:26 -0700 (PDT) From: xyz1001 To: ffmpeg-devel@ffmpeg.org Date: Sat, 14 Oct 2023 11:59:52 +0800 Message-ID: <20231014035957.66508-1-zgzf1001@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [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: , Reply-To: FFmpeg development discussions and patches Cc: 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: 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 --- 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}; -- 2.42.0 _______________________________________________ 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".