vd_lavc: fix build with old FFmpeg/Libav versions

Seems like AV_HWACCEL_FLAG_IGNORE_LEVEL was introduced much earlier than
AVCodecContext.hwaccel_flags.
This commit is contained in:
wm4 2017-07-04 15:24:02 +02:00
parent 91079c0e2b
commit b387f82aa4
1 changed files with 1 additions and 1 deletions

View File

@ -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