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 /video/decode | |
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 'video/decode')
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 5d3f77b746..ae79554edd 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -593,7 +593,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder, if (ctx->hwdec_dev->restore_device) ctx->hwdec_dev->restore_device(ctx->hwdec_dev); if (!ctx->hwdec->set_hwframes) { -#if HAVE_VDPAU_HWACCEL +#if HAVE_VDPAU_HWACCEL || HAVE_CUDA_HWACCEL avctx->hw_device_ctx = av_buffer_ref(ctx->hwdec_dev->av_device_ref); #else goto error; |