diff mbox series

[FFmpeg-devel,15/45] avcodec/xan: Mark decoder as init-threadsafe

Message ID 20201127010249.2724610-15-andreas.rheinhardt@gmail.com
State Accepted
Commit dbdad78b40e58342a0c816d363f44c52717dd934
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/xan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

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

Looks even better.
diff mbox series

Patch

diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index 5318aab797..6bf754f151 100644
--- a/libavcodec/xan.c
+++ b/libavcodec/xan.c
@@ -645,5 +645,5 @@  AVCodec ff_xan_wc3_decoder = {
     .close          = xan_decode_end,
     .decode         = xan_decode_frame,
     .capabilities   = AV_CODEC_CAP_DR1,
-    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
+    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE,
 };