mirror of
https://github.com/mpv-player/mpv
synced 2025-02-06 07:01:45 +00:00
vd_lavc: wrap use of deprecated AVCodecContext.thread_safe_callbacks in #if
For compatibility once FFmpeg removes it entirely.
This commit is contained in:
parent
8a7ef58b2d
commit
bbbf3571ed
@ -661,7 +661,9 @@ static void init_avctx(struct mp_filter *vd)
|
||||
if (!ctx->use_hwdec && ctx->vo && lavc_param->dr) {
|
||||
avctx->opaque = vd;
|
||||
avctx->get_buffer2 = get_buffer2_direct;
|
||||
#if LIBAVCODEC_VERSION_MAJOR < 60
|
||||
avctx->thread_safe_callbacks = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
avctx->flags |= lavc_param->bitexact ? AV_CODEC_FLAG_BITEXACT : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user