From c51b2c79a7ba084253e892c56dd49ee97115c7de Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Jan 2016 14:07:37 +0100 Subject: Allow linking to CUDA dynamically instead of dlopen()ing it at runtime --- libavcodec/nvenc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavcodec/nvenc.h') 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 #include +#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; -- cgit v1.2.3