mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/nvenc: remove unsupported AV1 High Profile
This commit is contained in:
parent
e7fbdda64e
commit
939273d3b4
2
configure
vendored
2
configure
vendored
@ -6456,7 +6456,7 @@ fi
|
|||||||
|
|
||||||
if ! disabled ffnvcodec; then
|
if ! disabled ffnvcodec; then
|
||||||
ffnv_hdr_list="ffnvcodec/nvEncodeAPI.h ffnvcodec/dynlink_cuda.h ffnvcodec/dynlink_cuviddec.h ffnvcodec/dynlink_nvcuvid.h"
|
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.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 >= 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" ""
|
check_pkg_config ffnvcodec "ffnvcodec >= 8.1.24.14 ffnvcodec < 8.2" "$ffnv_hdr_list" ""
|
||||||
|
@ -1375,8 +1375,8 @@ static av_cold int nvenc_setup_av1_config(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (IS_YUV444(ctx->data_pix_fmt)) {
|
if (IS_YUV444(ctx->data_pix_fmt)) {
|
||||||
cc->profileGUID = NV_ENC_AV1_PROFILE_HIGH_GUID;
|
av_log(avctx, AV_LOG_ERROR, "AV1 High Profile not supported, required for 4:4:4 encoding\n");
|
||||||
avctx->profile = FF_PROFILE_AV1_HIGH;
|
return AVERROR(ENOTSUP);
|
||||||
} else {
|
} else {
|
||||||
cc->profileGUID = NV_ENC_AV1_PROFILE_MAIN_GUID;
|
cc->profileGUID = NV_ENC_AV1_PROFILE_MAIN_GUID;
|
||||||
avctx->profile = FF_PROFILE_AV1_MAIN;
|
avctx->profile = FF_PROFILE_AV1_MAIN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user