diff mbox series

[FFmpeg-devel,2/2] avcodec/ttmlenc: Mark encoder as init-threadsafe

Message ID HE1PR0301MB215438268006A6702E5CE4A38F579@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit af7468a28222195245e2a856a1b2407ed8f10252
Headers show
Series [FFmpeg-devel,1/2] avcodec/ttmlenc: Don't confuse capabilities and caps_internal | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt May 7, 2021, 3:29 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
This of course supersedes
https://ffmpeg.org/pipermail/ffmpeg-devel/2021-May/279974.html

 libavcodec/ttmlenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/ttmlenc.c b/libavcodec/ttmlenc.c
index e274a92e04..5cab33cc60 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,
-    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
 };