Skip to content

Commit 553f17c

Browse files
committed
avcodec/nvenc: Report correct required driver versions for SDK 9.0
We need a new #ifdef condition when reporting the required driver versions for Video SDK 9.0.
1 parent 26cf504 commit 553f17c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libavcodec/nvenc.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ static int nvenc_print_error(void *log_ctx, NVENCSTATUS err,
122122

123123
static void nvenc_print_driver_requirement(AVCodecContext *avctx, int level)
124124
{
125-
#if NVENCAPI_CHECK_VERSION(8, 1)
125+
#if NVENCAPI_CHECK_VERSION(9, 0)
126+
# if defined(_WIN32) || defined(__CYGWIN__)
127+
const char *minver = "418.81";
128+
# else
129+
const char *minver = "418.30";
130+
# endif
131+
#elif NVENCAPI_CHECK_VERSION(8, 1)
126132
# if defined(_WIN32) || defined(__CYGWIN__)
127133
const char *minver = "390.77";
128134
# else

0 commit comments

Comments
 (0)