summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-26 18:08:38 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-04 15:46:46 +0100
commit703abb3c0e762a174bac9668fa4502932b29d43f (patch)
tree98235f653cc63e46515e3a130b67ac2212317fee
parent42c0cf89fe76a2b4b31145b8f89f96c1e9493ae3 (diff)
avcodec/xsubenc: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/xsubenc.c2
1 files changed, 2 insertions, 0 deletions
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,
};