[FFmpeg-cvslog] avcodec/nvenc: add driver version info for SDK 9.1
Timo Rothenpieler
git at videolan.org
Tue Sep 24 13:05:35 EEST 2019
ffmpeg | branch: release/4.2 | Timo Rothenpieler <timo at rothenpieler.org> | Mon Sep 23 15:47:27 2019 +0200| [0eb1088960a2df96369c442f9e96d768de17e070] | committer: Timo Rothenpieler
avcodec/nvenc: add driver version info for SDK 9.1
Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0eb1088960a2df96369c442f9e96d768de17e070
---
libavcodec/nvenc.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 3fe64bba8b..316e4a3679 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -122,7 +122,15 @@ static int nvenc_print_error(void *log_ctx, NVENCSTATUS err,
static void nvenc_print_driver_requirement(AVCodecContext *avctx, int level)
{
-#if NVENCAPI_CHECK_VERSION(9, 0)
+#if NVENCAPI_CHECK_VERSION(9, 2)
+ const char *minver = "(unknown)";
+#elif NVENCAPI_CHECK_VERSION(9, 1)
+# if defined(_WIN32) || defined(__CYGWIN__)
+ const char *minver = "436.15";
+# else
+ const char *minver = "435.21";
+# endif
+#elif NVENCAPI_CHECK_VERSION(9, 0)
# if defined(_WIN32) || defined(__CYGWIN__)
const char *minver = "418.81";
# else
More information about the ffmpeg-cvslog
mailing list