Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2022-11-10 17:26:43 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2022-11-10 17:26:43 +0300
commit939273d3b493fa4f0f1f6520d717c4b5442ef5ba (patch)
treef08fd869e891c4a9c0c879ebc5ea212199f99098
parente7fbdda64e2797c81a11c05b996dbb120c98b8c9 (diff)
avcodec/nvenc: remove unsupported AV1 High Profile
-rwxr-xr-xconfigure2
-rw-r--r--libavcodec/nvenc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 0f3042b8a7..a1cbb82334 100755
--- a/configure
+++ b/configure
@@ -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" ""
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;