diff options
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r-- | video/decode/lavc.h | 5 |
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 |