diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-05-13 09:13:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-05-19 14:17:03 +0200 |
commit | 6f58b4dc477e22237c4e89f6e2a1435aaa45a4d3 (patch) | |
tree | 0c04952630f33ad9517a4cc07afb570de9c45928 /libavcodec/nvenc.c | |
parent | f11ec8cee72fd2f1d26c4cbc675597422d106e17 (diff) |
nvenc: drop the hard dependency on CUDA
The code needs only a few definitions from cuda.h, so define them
directly when CUDA is not enabled. CUDA is still required for accepting
HW frames as input.
Based on the code by Timo Rothenpieler <timo@rothenpieler.org>.
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 7564985964..bdd26bb0ea 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -21,7 +21,6 @@ #include "config.h" -#include <cuda.h> #include <nvEncodeAPI.h> #include <string.h> |