From 5757db844a449ed6a1e0fadb2bd62bae6852c78a Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 May 2017 00:44:03 +0200 Subject: cuda: add new way to set cuda context on cuvid codecs See FFmpeg commit c0f17a905f3588bf61ba6d86a83c6835d431ed3d. --- video/decode/lavc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/decode/lavc.h') 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 +#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 -- cgit v1.2.3