From 083ae8e736832695f636b87f0c8b07d76764b9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Sat, 2 Apr 2022 20:44:00 +0300 Subject: vd_lavc: hide a deprecation warning in already handled compatible code The field has been deprecated, yet the upcoming new default is not yet the default. Thus, until lavc major hits 60 and the default behavior finally gets changed, we have to explicitly set the field's value. The deprecation had already been handled by adding the required version limitation for this code in bbbf3571edfbb0e849d3ef60148743352b84fe84 , this change merely just removes the warning which would otherwise appear until lavc major version gets bumped to 60. --- video/decode/vd_lavc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/decode') 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 } -- cgit v1.2.3