aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/webvttenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-01 14:15:21 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-02 05:14:42 +0200
commit2a4cedace4d440978aa10757644f2f0f7a80be2f (patch)
tree5ac1d0de03bd5ef6dafaacd81997b1145cf6fad3 /libavcodec/webvttenc.c
parent55982b944738796829a82d7b397b26c937b87762 (diff)
downloadffmpeg-2a4cedace4d440978aa10757644f2f0f7a80be2f.tar.gz
avcodec/movtextenc, srtenc, webvttenc: Mark encoders as init-threadsafe
They all rely on ff_ass_split(), which does not have any static state. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/webvttenc.c')
-rw-r--r--libavcodec/webvttenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c
index cc47b5aca3..3181e25120 100644
--- a/libavcodec/webvttenc.c
+++ b/libavcodec/webvttenc.c
@@ -26,6 +26,7 @@
#include "libavutil/bprint.h"
#include "ass_split.h"
#include "ass.h"
+#include "internal.h"
#define WEBVTT_STACK_SIZE 64
typedef struct {
@@ -219,4 +220,5 @@ const AVCodec ff_webvtt_encoder = {
.init = webvtt_encode_init,
.encode_sub = webvtt_encode_frame,
.close = webvtt_encode_close,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};