[FFmpeg-devel] [PATCH 186/217] avcodec/v410dec: Mark decoder as init-threadsafe

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Wed Dec 2 06:22:13 EET 2020


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

diff --git a/libavcodec/v410dec.c b/libavcodec/v410dec.c
index 7ad5eb8fb5..87c98f75ba 100644
--- a/libavcodec/v410dec.c
+++ b/libavcodec/v410dec.c
@@ -124,5 +124,6 @@ AVCodec ff_v410_decoder = {
     .init         = v410_decode_init,
     .decode       = v410_decode_frame,
     .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS |
-                    AV_CODEC_CAP_FRAME_THREADS
+                    AV_CODEC_CAP_FRAME_THREADS,
+    .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
 };
-- 
2.25.1



More information about the ffmpeg-devel mailing list