From b387f82aa40a1655590bbb0dffe58f9728a37b49 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 4 Jul 2017 15:24:02 +0200 Subject: vd_lavc: fix build with old FFmpeg/Libav versions Seems like AV_HWACCEL_FLAG_IGNORE_LEVEL was introduced much earlier than AVCodecContext.hwaccel_flags. --- video/decode/vd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/decode') 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 -- cgit v1.2.3