[FFmpeg-devel] [PATCH 085/134] avcodec/mvcdec: Mark decoders as init-threadsafe

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Mon Nov 30 02:54:05 EET 2020


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavcodec/mvcdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/mvcdec.c b/libavcodec/mvcdec.c
index e507674c22..5dc72c4715 100644
--- a/libavcodec/mvcdec.c
+++ b/libavcodec/mvcdec.c
@@ -262,6 +262,7 @@ AVCodec ff_mvc1_decoder = {
     .init           = mvc_decode_init,
     .decode         = mvc_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 #endif
 
@@ -275,5 +276,6 @@ AVCodec ff_mvc2_decoder = {
     .init           = mvc_decode_init,
     .decode         = mvc_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 #endif
-- 
2.25.1



More information about the ffmpeg-devel mailing list