[FFmpeg-devel] [PATCH 207/217] avcodec/assdec: Mark decoders as init-threadsafe

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


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

diff --git a/libavcodec/assdec.c b/libavcodec/assdec.c
index f0b1069cd2..78df1c30ad 100644
--- a/libavcodec/assdec.c
+++ b/libavcodec/assdec.c
@@ -23,6 +23,7 @@
 
 #include "avcodec.h"
 #include "ass.h"
+#include "internal.h"
 #include "libavutil/internal.h"
 #include "libavutil/mem.h"
 
@@ -69,6 +70,7 @@ AVCodec ff_ssa_decoder = {
     .id           = AV_CODEC_ID_ASS,
     .init         = ass_decode_init,
     .decode       = ass_decode_frame,
+    .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 #endif
 
@@ -80,5 +82,6 @@ AVCodec ff_ass_decoder = {
     .id           = AV_CODEC_ID_ASS,
     .init         = ass_decode_init,
     .decode       = ass_decode_frame,
+    .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 #endif
-- 
2.25.1



More information about the ffmpeg-devel mailing list