summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-07-04 15:24:02 +0200
committerwm4 <wm4@nowhere>2017-07-04 15:24:09 +0200
commitb387f82aa40a1655590bbb0dffe58f9728a37b49 (patch)
tree758d77cd318fb663d4127b3ac758cce5e72f04b3 /video/decode
parent91079c0e2ba4e02ae923720d6a30b497a2dcec91 (diff)
downloadmpv-b387f82aa40a1655590bbb0dffe58f9728a37b49.tar.bz2
mpv-b387f82aa40a1655590bbb0dffe58f9728a37b49.tar.xz
vd_lavc: fix build with old FFmpeg/Libav versions
Seems like AV_HWACCEL_FLAG_IGNORE_LEVEL was introduced much earlier than AVCodecContext.hwaccel_flags.
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vd_lavc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 1e4a26d4bf..e02da5ebda 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -564,7 +564,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
if (ctx->hwdec) {
avctx->opaque = vd;
avctx->thread_count = 1;
-#ifdef AV_HWACCEL_FLAG_IGNORE_LEVEL
+#if HAVE_VDPAU_HWACCEL
avctx->hwaccel_flags |= AV_HWACCEL_FLAG_IGNORE_LEVEL;
#endif
#ifdef AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH