diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-01 16:49:02 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-02 05:14:42 +0200 |
commit | 1c7e52f8fff36bd67917cdc3fe9f523258659cbc (patch) | |
tree | a9480637579de781cc58f23ca84821ea51c731a8 /libavcodec/textdec.c | |
parent | a380343c759861dd958316f5d64e2d668610aa33 (diff) | |
download | ffmpeg-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/textdec.c')
-rw-r--r-- | libavcodec/textdec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/textdec.c b/libavcodec/textdec.c index c1fcc5c6cb..becbab601c 100644 --- a/libavcodec/textdec.c +++ b/libavcodec/textdec.c @@ -25,6 +25,7 @@ #include "avcodec.h" #include "ass.h" +#include "internal.h" #include "libavutil/bprint.h" #include "libavutil/opt.h" @@ -91,6 +92,7 @@ const AVCodec ff_text_decoder = { .init = ff_ass_subtitle_header_default, .priv_class = &text_decoder_class, .flush = text_flush, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; #endif @@ -117,6 +119,7 @@ const AVCodec ff_vplayer_decoder = { .init = linebreak_init, .priv_class = &vplayer_decoder_class, .flush = text_flush, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; #endif @@ -134,6 +137,7 @@ const AVCodec ff_stl_decoder = { .init = linebreak_init, .priv_class = &stl_decoder_class, .flush = text_flush, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; #endif @@ -151,6 +155,7 @@ const AVCodec ff_pjs_decoder = { .init = linebreak_init, .priv_class = &pjs_decoder_class, .flush = text_flush, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; #endif @@ -168,6 +173,7 @@ const AVCodec ff_subviewer1_decoder = { .init = linebreak_init, .priv_class = &subviewer1_decoder_class, .flush = text_flush, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; #endif |