avcodec/nvenc: remove unsupported AV1 High Profile

This commit is contained in:
Timo Rothenpieler 2022-11-10 15:26:43 +01:00
parent e7fbdda64e
commit 939273d3b4
2 changed files with 3 additions and 3 deletions

2
configure vendored
View File

@ -6456,7 +6456,7 @@ fi
if ! disabled ffnvcodec; then
ffnv_hdr_list="ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h"
check_pkg_config ffnvcodec "ffnvcodec >= 12.0.11.0" "$ffnv_hdr_list" "" || \
check_pkg_config ffnvcodec "ffnvcodec >= 12.0.16.0" "$ffnv_hdr_list" "" || \
check_pkg_config ffnvcodec "ffnvcodec >= 11.1.5.2 ffnvcodec < 12.0" "$ffnv_hdr_list" "" || \
check_pkg_config ffnvcodec "ffnvcodec >= 11.0.10.2 ffnvcodec < 11.1" "$ffnv_hdr_list" "" || \
check_pkg_config ffnvcodec "ffnvcodec >= 8.1.24.14 ffnvcodec < 8.2" "$ffnv_hdr_list" ""

View File

@ -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;