diff options
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r-- | libavcodec/nvenc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index 6edca75195..a0020377e6 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -22,6 +22,8 @@ #include <cuda.h> #include <nvEncodeAPI.h> +#include "config.h" + #include "libavutil/fifo.h" #include "libavutil/opt.h" @@ -47,7 +49,9 @@ typedef NVENCSTATUS (NVENCAPI *PNVENCODEAPICREATEINSTANCE)(NV_ENCODE_API_FUNCTIO typedef struct NVENCLibraryContext { +#if !CONFIG_CUDA void *cuda; +#endif void *nvenc; PCUINIT cu_init; |