mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
3abb6f1fef
The test ended up failing if cuda.h wasn't present, even if cuda.h isn't used during the actual build. This test is attempting to establish if the ffmpeg being built against has dynlink_cuda support. While it might theoretically be possible to build against the older normally-linked-cuda version of ffmpeg, it seems more trouble than it's worth.
13 lines
269 B
C
13 lines
269 B
C
#define CUDA_VERSION 7050
|
|
|
|
typedef void * CUcontext;
|
|
|
|
#include <libavutil/hwcontext.h>
|
|
#include <libavutil/hwcontext_cuda.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
enum AVHWDeviceType type = AV_HWDEVICE_TYPE_CUDA;
|
|
AVCUDADeviceContextInternal *foo;
|
|
return 0;
|
|
}
|