diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2019-09-23 15:47:27 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2019-09-23 15:47:27 +0200 |
commit | 648f5c93820ed204bdc477562b61055068c412fe (patch) | |
tree | 5421ea9e0caeeebb496c2ff05f7eaa64b67a57bc /libavcodec/nvenc.c | |
parent | d889ae33962e4ad2b24175418fe89d72ce712179 (diff) |
avcodec/nvenc: add driver version info for SDK 9.1
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 3fe64bba8b..87f22b32fa 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 = "435.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 |