You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
committed by
Andreas Rheinhardt
parent
55982b9447
commit
2a4cedace4
@@ -718,5 +718,5 @@ const AVCodec ff_movtext_encoder = {
|
|||||||
.init = mov_text_encode_init,
|
.init = mov_text_encode_init,
|
||||||
.encode_sub = mov_text_encode_frame,
|
.encode_sub = mov_text_encode_frame,
|
||||||
.close = mov_text_encode_close,
|
.close = mov_text_encode_close,
|
||||||
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
|
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
|
||||||
};
|
};
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
#include "libavutil/bprint.h"
|
#include "libavutil/bprint.h"
|
||||||
#include "ass_split.h"
|
#include "ass_split.h"
|
||||||
#include "ass.h"
|
#include "ass.h"
|
||||||
|
#include "internal.h"
|
||||||
|
|
||||||
|
|
||||||
#define SRT_STACK_SIZE 64
|
#define SRT_STACK_SIZE 64
|
||||||
@@ -299,6 +300,7 @@ const AVCodec ff_srt_encoder = {
|
|||||||
.init = srt_encode_init,
|
.init = srt_encode_init,
|
||||||
.encode_sub = srt_encode_frame,
|
.encode_sub = srt_encode_frame,
|
||||||
.close = srt_encode_close,
|
.close = srt_encode_close,
|
||||||
|
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -312,6 +314,7 @@ const AVCodec ff_subrip_encoder = {
|
|||||||
.init = srt_encode_init,
|
.init = srt_encode_init,
|
||||||
.encode_sub = srt_encode_frame,
|
.encode_sub = srt_encode_frame,
|
||||||
.close = srt_encode_close,
|
.close = srt_encode_close,
|
||||||
|
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -325,5 +328,6 @@ const AVCodec ff_text_encoder = {
|
|||||||
.init = srt_encode_init,
|
.init = srt_encode_init,
|
||||||
.encode_sub = text_encode_frame,
|
.encode_sub = text_encode_frame,
|
||||||
.close = srt_encode_close,
|
.close = srt_encode_close,
|
||||||
|
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#include "libavutil/bprint.h"
|
#include "libavutil/bprint.h"
|
||||||
#include "ass_split.h"
|
#include "ass_split.h"
|
||||||
#include "ass.h"
|
#include "ass.h"
|
||||||
|
#include "internal.h"
|
||||||
|
|
||||||
#define WEBVTT_STACK_SIZE 64
|
#define WEBVTT_STACK_SIZE 64
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -219,4 +220,5 @@ const AVCodec ff_webvtt_encoder = {
|
|||||||
.init = webvtt_encode_init,
|
.init = webvtt_encode_init,
|
||||||
.encode_sub = webvtt_encode_frame,
|
.encode_sub = webvtt_encode_frame,
|
||||||
.close = webvtt_encode_close,
|
.close = webvtt_encode_close,
|
||||||
|
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user