ffmpeg | branch: master | Timo Rothenpieler <t...@rothenpieler.org> | Thu Nov 
10 15:26:43 2022 +0100| [939273d3b493fa4f0f1f6520d717c4b5442ef5ba] | committer: 
Timo Rothenpieler

avcodec/nvenc: remove unsupported AV1 High Profile

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=939273d3b493fa4f0f1f6520d717c4b5442ef5ba
---

 configure          | 2 +-
 libavcodec/nvenc.c | 4 ++--
 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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to