[FFmpeg-cvslog] avcodec/adpcm: Mark decoders as init-threadsafe

Andreas Rheinhardt git at videolan.org
Fri Dec 4 17:39:40 EET 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Thu Nov 26 14:26:17 2020 +0100| [87a5d9821f996a84610cd40e026c1ee43957f564] | committer: Andreas Rheinhardt

avcodec/adpcm: Mark decoders as init-threadsafe

They don't modify any global state

Reviewed-by: Anton Khirnov <anton at khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87a5d9821f996a84610cd40e026c1ee43957f564
---

 libavcodec/adpcm.c | 1 +
 1 file changed, 1 insertion(+)

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. */



More information about the ffmpeg-cvslog mailing list