1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/xsubdec: Mark decoder as init-threadsafe

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-11-26 17:52:44 +01:00
parent 88f0d6b60c
commit 42c0cf89fe

View File

@ -24,6 +24,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "bytestream.h" #include "bytestream.h"
#include "internal.h"
static av_cold int decode_init(AVCodecContext *avctx) { static av_cold int decode_init(AVCodecContext *avctx) {
avctx->pix_fmt = AV_PIX_FMT_PAL8; avctx->pix_fmt = AV_PIX_FMT_PAL8;
@ -180,4 +181,5 @@ AVCodec ff_xsub_decoder = {
.id = AV_CODEC_ID_XSUB, .id = AV_CODEC_ID_XSUB,
.init = decode_init, .init = decode_init,
.decode = decode_frame, .decode = decode_frame,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };