From 1c7e52f8fff36bd67917cdc3fe9f523258659cbc Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 1 Dec 2020 16:49:02 +0100 Subject: 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 --- libavcodec/webvttdec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/webvttdec.c') diff --git a/libavcodec/webvttdec.c b/libavcodec/webvttdec.c index eb0a5600a6..0093f328fa 100644 --- a/libavcodec/webvttdec.c +++ b/libavcodec/webvttdec.c @@ -27,6 +27,7 @@ #include "avcodec.h" #include "ass.h" +#include "internal.h" #include "libavutil/bprint.h" static const struct { @@ -107,4 +108,5 @@ const AVCodec ff_webvtt_decoder = { .init = ff_ass_subtitle_header_default, .flush = ff_ass_decoder_flush, .priv_data_size = sizeof(FFASSDecoderContext), + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, }; -- cgit v1.2.3