diff mbox series

[FFmpeg-devel,19/45] avcodec/xsubenc: Mark decoder as init-threadsafe

Message ID 20201127010249.2724610-19-andreas.rheinhardt@gmail.com
State Accepted
Commit 703abb3c0e762a174bac9668fa4502932b29d43f
Headers show
Series [FFmpeg-devel,01/45] avcodec/a64multienc: Fix memleak upon init failure
Related show

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/xsubenc.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:23)
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/xsubenc.c | 2 ++
>  1 file changed, 2 insertions(+)

Extremely good
diff mbox series

Patch

diff --git a/libavcodec/xsubenc.c b/libavcodec/xsubenc.c
index 58be5e6deb..ad7144db2d 100644
--- a/libavcodec/xsubenc.c
+++ b/libavcodec/xsubenc.c
@@ -22,6 +22,7 @@ 
 
 #include "avcodec.h"
 #include "bytestream.h"
+#include "internal.h"
 #include "put_bits.h"
 
 /**
@@ -230,4 +231,5 @@  AVCodec ff_xsub_encoder = {
     .id         = AV_CODEC_ID_XSUB,
     .init       = xsub_encoder_init,
     .encode_sub = xsub_encode,
+    .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
 };