summaryrefslogtreecommitdiff
path: root/libavcodec/realtextdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-01 16:49:02 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-02 05:14:42 +0200
commit1c7e52f8fff36bd67917cdc3fe9f523258659cbc (patch)
treea9480637579de781cc58f23ca84821ea51c731a8 /libavcodec/realtextdec.c
parenta380343c759861dd958316f5d64e2d668610aa33 (diff)
downloadffmpeg-1c7e52f8fff36bd67917cdc3fe9f523258659cbc.tar.gz
avcodec: Mark ff_ass_subtitle_header based decoders as init-threadsafe
ff_ass_subtitle_header_full() just uses av_asprintf() and is therefore thread-safe itself. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/realtextdec.c')
-rw-r--r--libavcodec/realtextdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/realtextdec.c b/libavcodec/realtextdec.c
index d469a1981b..11b586d493 100644
--- a/libavcodec/realtextdec.c
+++ b/libavcodec/realtextdec.c
@@ -26,6 +26,7 @@
#include "avcodec.h"
#include "ass.h"
+#include "internal.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
@@ -83,4 +84,5 @@ const AVCodec ff_realtext_decoder = {
.init = ff_ass_subtitle_header_default,
.flush = ff_ass_decoder_flush,
.priv_data_size = sizeof(FFASSDecoderContext),
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};