summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2019-03-10 00:25:31 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2019-03-10 00:25:31 +0100
commit1144d5c96d2ade86b4c3ea98b949dbd3ee926636 (patch)
tree50ee75daebd0ef5109e530a6fc3db8975c831868 /libavcodec/nvenc.c
parent26cf50404d1a965e88c379b4c88a5c4d7fa9f6ed (diff)
avcodec/nvenc: add minimum driver version for SDK 8.2 and 9.0
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c14
1 files changed, 13 insertions, 1 deletions
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