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:
Philip Langdale 2018-05-10 12:03:12 -07:00 committed by Jan Ekström
parent a645c6b2ec
commit 1b19ba6c57
2 changed files with 1 additions and 17 deletions

View File

@ -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;
}

View File

@ -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,
}
]