]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/hwcontext_cuda.h
tests/avstring: free the pointer after calls to av_d2str()
[ffmpeg] / libavutil / hwcontext_cuda.h
index 23a77cee73424b89909657df7a4d6afa207eca8c..12dae8449ec3261fb53dedc3ac1c60609af4cc4c 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef AVUTIL_HWCONTEXT_CUDA_H
 #define AVUTIL_HWCONTEXT_CUDA_H
 
+#ifndef CUDA_VERSION
 #include <cuda.h>
+#endif
 
 #include "pixfmt.h"
 
  * AVBufferRefs whose data pointer is a CUdeviceptr.
  */
 
+typedef struct AVCUDADeviceContextInternal AVCUDADeviceContextInternal;
+
 /**
  * This struct is allocated as AVHWDeviceContext.hwctx
  */
 typedef struct AVCUDADeviceContext {
     CUcontext cuda_ctx;
+    AVCUDADeviceContextInternal *internal;
 } AVCUDADeviceContext;
 
 /**