diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index a5fb748e4d..13b0c26ddc 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -675,7 +675,9 @@ static void init_avctx(struct mp_filter *vd) avctx->opaque = vd; avctx->get_buffer2 = get_buffer2_direct; #if LIBAVCODEC_VERSION_MAJOR < 60 - avctx->thread_safe_callbacks = 1; + AV_NOWARN_DEPRECATED({ + avctx->thread_safe_callbacks = 1; + }); #endif }