mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
a645c6b2ec
commit
1b19ba6c57
|
@ -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;
|
|
||||||
}
|
|
3
wscript
3
wscript
|
@ -842,8 +842,7 @@ hwaccel_features = [
|
||||||
'name': '--cuda-hwaccel',
|
'name': '--cuda-hwaccel',
|
||||||
'desc': 'CUDA hwaccel',
|
'desc': 'CUDA hwaccel',
|
||||||
'deps': 'gl && ffnvcodec',
|
'deps': 'gl && ffnvcodec',
|
||||||
'func': check_cc(fragment=load_fragment('cuda.c'),
|
'func': check_true,
|
||||||
use='libavcodec'),
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue