diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-08-08 02:00:38 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-08-08 02:00:38 +0200 |
commit | ac0408522aa68444be28e4e691bfa61ab963c617 (patch) | |
tree | 791dc08f5862155b6a487e8ab4b485a9f2df1547 /libavcodec | |
parent | e56f6e59b6cbb2ebfa49bee8a21e6f4f09e7ade0 (diff) | |
download | ffmpeg-ac0408522aa68444be28e4e691bfa61ab963c617.tar.gz |
avcodec/nvenc: make aware of SDK 11.1 driver requirements
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/nvenc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 32bcd4b318..df8e472e73 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -217,8 +217,14 @@ static void nvenc_map_preset(NvencContext *ctx) static void nvenc_print_driver_requirement(AVCodecContext *avctx, int level) { -#if NVENCAPI_CHECK_VERSION(11, 1) +#if NVENCAPI_CHECK_VERSION(11, 2) const char *minver = "(unknown)"; +#elif NVENCAPI_CHECK_VERSION(11, 1) +# if defined(_WIN32) || defined(__CYGWIN__) + const char *minver = "471.41"; +# else + const char *minver = "470.57.02"; +# endif #elif NVENCAPI_CHECK_VERSION(11, 0) # if defined(_WIN32) || defined(__CYGWIN__) const char *minver = "456.71"; |