summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-05-05 00:44:03 +0200
committerwm4 <wm4@nowhere>2017-05-05 00:48:53 +0200
commit5757db844a449ed6a1e0fadb2bd62bae6852c78a (patch)
treee22fdff215edd3c786c80a47c90bacbd4428e664 /video/decode/lavc.h
parent0d122f8963c6ff43f2b7c9f5828163b07ef5febf (diff)
downloadmpv-5757db844a449ed6a1e0fadb2bd62bae6852c78a.tar.bz2
mpv-5757db844a449ed6a1e0fadb2bd62bae6852c78a.tar.xz
cuda: add new way to set cuda context on cuvid codecs
See FFmpeg commit c0f17a905f3588bf61ba6d86a83c6835d431ed3d.
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index a09929e29b..cc098b998e 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -5,6 +5,8 @@
#include <libavcodec/avcodec.h>
+#include "config.h"
+
#include "demux/stheader.h"
#include "video/mp_image.h"
#include "video/mp_image_pool.h"
@@ -139,4 +141,7 @@ int hwdec_setup_hw_frames_ctx(struct lavc_ctx *ctx, AVBufferRef *device_ctx,
const char *hwdec_find_decoder(const char *codec, const char *suffix);
+#define NEW_CUDA_HWACCEL \
+ (HAVE_CUDA_HWACCEL && LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 94, 100))
+
#endif