summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2022-11-10 15:26:43 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2022-11-10 15:26:43 +0100
commit939273d3b493fa4f0f1f6520d717c4b5442ef5ba (patch)
treef08fd869e891c4a9c0c879ebc5ea212199f99098 /libavcodec/nvenc.c
parente7fbdda64e2797c81a11c05b996dbb120c98b8c9 (diff)
downloadffmpeg-939273d3b493fa4f0f1f6520d717c4b5442ef5ba.tar.gz
avcodec/nvenc: remove unsupported AV1 High Profile
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c4
1 files changed, 2 insertions, 2 deletions
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;