[FFmpeg-cvslog] avcodec/nvenc: add minimum driver version for SDK 8.2 and 9.0

Timo Rothenpieler git at videolan.org
Sun Mar 10 01:34:43 EET 2019


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sun Mar 10 00:25:31 2019 +0100| [1144d5c96d2ade86b4c3ea98b949dbd3ee926636] | committer: Timo Rothenpieler

avcodec/nvenc: add minimum driver version for SDK 8.2 and 9.0

Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>

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

 libavcodec/nvenc.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 304a684e0c..d3413b3fd7 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -122,7 +122,19 @@ static int nvenc_print_error(void *log_ctx, NVENCSTATUS err,
 
 static void nvenc_print_driver_requirement(AVCodecContext *avctx, int level)
 {
-#if NVENCAPI_CHECK_VERSION(8, 1)
+#if NVENCAPI_CHECK_VERSION(9, 0)
+# if defined(_WIN32) || defined(__CYGWIN__)
+    const char *minver = "418.81";
+# else
+    const char *minver = "418.30";
+# endif
+#elif NVENCAPI_CHECK_VERSION(8, 2)
+# if defined(_WIN32) || defined(__CYGWIN__)
+    const char *minver = "397.93";
+# else
+    const char *minver = "396.24";
+#endif
+#elif NVENCAPI_CHECK_VERSION(8, 1)
 # if defined(_WIN32) || defined(__CYGWIN__)
     const char *minver = "390.77";
 # else



More information about the ffmpeg-cvslog mailing list