From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Subject: [FFmpeg-devel] [PATCH] avcodec/d3d12va_(av1|hevc|vp9): Don't use deprecated FF_PROFILE_* Date: Fri, 22 Dec 2023 17:29:41 +0100 Message-ID: <AS8P250MB0744C719F89358944D5463A88F94A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/d3d12va_av1.c | 2 +- libavcodec/d3d12va_hevc.c | 6 +++--- libavcodec/d3d12va_vp9.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/d3d12va_av1.c b/libavcodec/d3d12va_av1.c index 6a3543353f..4a87169bfb 100644 --- a/libavcodec/d3d12va_av1.c +++ b/libavcodec/d3d12va_av1.c @@ -164,7 +164,7 @@ static int d3d12va_av1_decode_init(AVCodecContext *avctx) int ret; - if (avctx->profile != FF_PROFILE_AV1_MAIN) + if (avctx->profile != AV_PROFILE_AV1_MAIN) return AVERROR(EINVAL); ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0; diff --git a/libavcodec/d3d12va_hevc.c b/libavcodec/d3d12va_hevc.c index 7e0c295a2d..2fd884b8e6 100644 --- a/libavcodec/d3d12va_hevc.c +++ b/libavcodec/d3d12va_hevc.c @@ -171,11 +171,11 @@ static int d3d12va_hevc_decode_init(AVCodecContext *avctx) DXVA_PicParams_HEVC pp; switch (avctx->profile) { - case FF_PROFILE_HEVC_MAIN_10: + case AV_PROFILE_HEVC_MAIN_10: ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10; break; - case FF_PROFILE_HEVC_MAIN_STILL_PICTURE: + case AV_PROFILE_HEVC_MAIN_STILL_PICTURE: if (avctx->hwaccel_flags & AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH) { ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN; break; @@ -184,7 +184,7 @@ static int d3d12va_hevc_decode_init(AVCodecContext *avctx) return AVERROR(EINVAL); } - case FF_PROFILE_HEVC_MAIN: + case AV_PROFILE_HEVC_MAIN: default: ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN; break; diff --git a/libavcodec/d3d12va_vp9.c b/libavcodec/d3d12va_vp9.c index bb94e18781..84ff06b9a9 100644 --- a/libavcodec/d3d12va_vp9.c +++ b/libavcodec/d3d12va_vp9.c @@ -136,13 +136,13 @@ static int d3d12va_vp9_decode_init(AVCodecContext *avctx) DXVA_PicParams_VP9 pp; switch (avctx->profile) { - case FF_PROFILE_VP9_2: - case FF_PROFILE_VP9_3: + case AV_PROFILE_VP9_2: + case AV_PROFILE_VP9_3: ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2; break; - case FF_PROFILE_VP9_0: - case FF_PROFILE_VP9_1: + case AV_PROFILE_VP9_0: + case AV_PROFILE_VP9_1: default: ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_VP9; break; -- 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".
next reply other threads:[~2023-12-22 16:28 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-22 16:29 Andreas Rheinhardt [this message] 2023-12-24 9:39 ` Andreas Rheinhardt
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=AS8P250MB0744C719F89358944D5463A88F94A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \ --to=andreas.rheinhardt@outlook.com \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git