[FFmpeg-devel] [PATCH 02/23] avcodec/ttmlenc: Mark encoder as init-threadsafe

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu May 6 08:11:00 EEST 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/ttmlenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ttmlenc.c b/libavcodec/ttmlenc.c
index 09f2657cd6..60abf25ce1 100644
--- a/libavcodec/ttmlenc.c
+++ b/libavcodec/ttmlenc.c
@@ -392,5 +392,5 @@ const AVCodec ff_ttml_encoder = {
     .init           = ttml_encode_init,
     .encode_sub     = ttml_encode_frame,
     .close          = ttml_encode_close,
-    .capabilities   = FF_CODEC_CAP_INIT_CLEANUP,
+    .capabilities   = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
 };
-- 
2.27.0



More information about the ffmpeg-devel mailing list