diff mbox series

[FFmpeg-devel,04/45] avcodec/adpcm: Mark decoders as init-threadsafe

Message ID 20201127010249.2724610-4-andreas.rheinhardt@gmail.com
State Accepted
Commit 87a5d9821f996a84610cd40e026c1ee43957f564
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
They don't modify any global state

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/adpcm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Anton Khirnov Dec. 4, 2020, 10:46 a.m. UTC | #1
Quoting Andreas Rheinhardt (2020-11-27 02:02:08)
> They don't modify any global state
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/adpcm.c | 1 +
>  1 file changed, 1 insertion(+)

Looks ok
diff mbox series

Patch

diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 01aced2e10..eb228cc47a 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -2142,6 +2142,7 @@  AVCodec ff_ ## name_ ## _decoder = {                        \
     .flush          = adpcm_flush,                          \
     .capabilities   = AV_CODEC_CAP_DR1,                     \
     .sample_fmts    = sample_fmts_,                         \
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,         \
 }
 
 /* Note: Do not forget to add new entries to the Makefile as well. */