summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@cloudera.com>2018-05-10 12:03:12 -0700
committerJan Ekström <jeebjp@gmail.com>2018-05-10 22:43:08 +0300
commit1b19ba6c57c9adabed2bbb22b6c0c231c44d0af4 (patch)
treefafb83d3123ff72a1fb4de14feb9481640489f9e
parenta645c6b2ecf72c0e64f4d32bf14115398bf5b57f (diff)
downloadmpv-1b19ba6c57c9adabed2bbb22b6c0c231c44d0af4.tar.bz2
mpv-1b19ba6c57c9adabed2bbb22b6c0c231c44d0af4.tar.xz
wscript: Remove code check for cuda hwaccel
This was there originally to detect too-old versions of ffmpeg. We now only support >= 4.0, so it's not relevant. We just need the dependencies to be present.
-rw-r--r--waftools/fragments/cuda.c15
-rw-r--r--wscript3
2 files changed, 1 insertions, 17 deletions
diff --git a/waftools/fragments/cuda.c b/waftools/fragments/cuda.c
deleted file mode 100644
index 1d534f62d3..0000000000
--- a/waftools/fragments/cuda.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#define CUDA_VERSION 7050
-
-typedef void * CUcontext;
-
-#include <libavcodec/avcodec.h>
-#include <libavutil/hwcontext.h>
-#include <libavutil/hwcontext_cuda.h>
-
-int main(int argc, char *argv[]) {
- enum AVHWDeviceType type = AV_HWDEVICE_TYPE_CUDA;
- AVCUDADeviceContextInternal *foo;
- AVCodecContext *avctx = avcodec_alloc_context3(NULL);
- avctx->hw_device_ctx = NULL;
- return 0;
-}
diff --git a/wscript b/wscript
index 8ad8d5ab20..c808f9b8ce 100644
--- a/wscript
+++ b/wscript
@@ -842,8 +842,7 @@ hwaccel_features = [
'name': '--cuda-hwaccel',
'desc': 'CUDA hwaccel',
'deps': 'gl && ffnvcodec',
- 'func': check_cc(fragment=load_fragment('cuda.c'),
- use='libavcodec'),
+ 'func': check_true,
}
]