diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2018-04-13 09:36:49 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2018-04-13 11:19:43 +0200 |
commit | 9f3902f107343f2690dce7ac7fef7c66887692b1 (patch) | |
tree | bdca818f2528af84e0cb75911c2b811ae192544a /libavcodec/nvenc.c | |
parent | 987026adda79be4bbc541e12c5c6796b43f84bc1 (diff) | |
download | ffmpeg-9f3902f107343f2690dce7ac7fef7c66887692b1.tar.gz |
avcodec/nv{enc,dec}: use sane version checking macro
For some odd reason, the Nvidia version macros puts the minor version in
the msb, so comparing against it is impossible.
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 9d07c260d0..c14112c366 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -119,7 +119,7 @@ static int nvenc_print_error(void *log_ctx, NVENCSTATUS err, static void nvenc_print_driver_requirement(AVCodecContext *avctx, int level) { -#if NVENCAPI_VERSION >= 0x01000008 +#if NVENCAPI_CHECK_VERSION(8, 1) # if defined(_WIN32) || defined(__CYGWIN__) const char *minver = "390.77"; # else |