summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2022-04-02 20:44:00 +0300
committerJan Ekström <jeebjp@gmail.com>2022-04-03 00:23:58 +0300
commit083ae8e736832695f636b87f0c8b07d76764b9ec (patch)
tree596d2e1891c30273f97b72f16cd79f94fe7ec582 /video/decode
parentfb7b66ecf1b9fa2bd6f41d99a39412bcc5b84790 (diff)
downloadmpv-083ae8e736832695f636b87f0c8b07d76764b9ec.tar.bz2
mpv-083ae8e736832695f636b87f0c8b07d76764b9ec.tar.xz
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.
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vd_lavc.c4
1 files changed, 3 insertions, 1 deletions
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
}