mirror of https://github.com/mpv-player/mpv
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:
parent
91079c0e2b
commit
b387f82aa4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue