diff mbox series

[FFmpeg-devel,18/45] avcodec/xsubdec: Mark decoder as init-threadsafe

Message ID 20201127010249.2724610-18-andreas.rheinhardt@gmail.com
State Accepted
Commit 42c0cf89fe76a2b4b31145b8f89f96c1e9493ae3
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Nov. 27, 2020, 1:02 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/xsubdec.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Anton Khirnov Dec. 4, 2020, 11:48 a.m. UTC | #1
Quoting Andreas Rheinhardt (2020-11-27 02:02:22)
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/xsubdec.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Good
diff mbox series

Patch

diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c
index c1c6e11dc3..87ac910577 100644
--- a/libavcodec/xsubdec.c
+++ b/libavcodec/xsubdec.c
@@ -24,6 +24,7 @@ 
 #include "avcodec.h"
 #include "get_bits.h"
 #include "bytestream.h"
+#include "internal.h"
 
 static av_cold int decode_init(AVCodecContext *avctx) {
     avctx->pix_fmt = AV_PIX_FMT_PAL8;
@@ -180,4 +181,5 @@  AVCodec ff_xsub_decoder = {
     .id        = AV_CODEC_ID_XSUB,
     .init      = decode_init,
     .decode    = decode_frame,
+    .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
 };