From 939273d3b493fa4f0f1f6520d717c4b5442ef5ba Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Thu, 10 Nov 2022 15:26:43 +0100 Subject: avcodec/nvenc: remove unsupported AV1 High Profile --- libavcodec/nvenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/nvenc.c') diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index b9edc0e26d..7df11e5866 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1375,8 +1375,8 @@ static av_cold int nvenc_setup_av1_config(AVCodecContext *avctx) } if (IS_YUV444(ctx->data_pix_fmt)) { - cc->profileGUID = NV_ENC_AV1_PROFILE_HIGH_GUID; - avctx->profile = FF_PROFILE_AV1_HIGH; + av_log(avctx, AV_LOG_ERROR, "AV1 High Profile not supported, required for 4:4:4 encoding\n"); + return AVERROR(ENOTSUP); } else { cc->profileGUID = NV_ENC_AV1_PROFILE_MAIN_GUID; avctx->profile = FF_PROFILE_AV1_MAIN; -- cgit v1.2.1