[FFmpeg-cvslog] avcodec/xsubenc: Mark decoder as init-threadsafe

Andreas Rheinhardt git at videolan.org
Fri Dec 4 17:40:16 EET 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Thu Nov 26 18:08:38 2020 +0100| [703abb3c0e762a174bac9668fa4502932b29d43f] | committer: Andreas Rheinhardt

avcodec/xsubenc: Mark decoder as init-threadsafe

Reviewed-by: Anton Khirnov <anton at khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=703abb3c0e762a174bac9668fa4502932b29d43f
---

 libavcodec/xsubenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/xsubenc.c b/libavcodec/xsubenc.c
index 58be5e6deb..ad7144db2d 100644
--- a/libavcodec/xsubenc.c
+++ b/libavcodec/xsubenc.c
@@ -22,6 +22,7 @@
 
 #include "avcodec.h"
 #include "bytestream.h"
+#include "internal.h"
 #include "put_bits.h"
 
 /**
@@ -230,4 +231,5 @@ AVCodec ff_xsub_encoder = {
     .id         = AV_CODEC_ID_XSUB,
     .init       = xsub_encoder_init,
     .encode_sub = xsub_encode,
+    .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
 };



More information about the ffmpeg-cvslog mailing list