diff options
author | wm4 <wm4@nowhere> | 2017-09-26 23:20:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-09-26 23:20:20 +0200 |
commit | dc5fcced233ac4c9f2d644cbfc246644a095f673 (patch) | |
tree | 9f3a83a1a4a25b7d151ffba61c35221c3d1259d4 /waftools | |
parent | 2f5ba78a0b57611c359a94d5930a75378230688b (diff) | |
download | mpv-dc5fcced233ac4c9f2d644cbfc246644a095f673.tar.bz2 mpv-dc5fcced233ac4c9f2d644cbfc246644a095f673.tar.xz |
vd_lavc: cuda requires setting hw_device_ctx
This restores cuda/cuvid under Windows.
Cuvid is relatively useless under Windows, but this was requested.
Diffstat (limited to 'waftools')
-rw-r--r-- | waftools/fragments/cuda.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/waftools/fragments/cuda.c b/waftools/fragments/cuda.c index c63ec2945d..1d534f62d3 100644 --- a/waftools/fragments/cuda.c +++ b/waftools/fragments/cuda.c @@ -2,11 +2,14 @@ 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; } |