[FFmpeg-devel] [PATCH 07/45] avcodec/pcm: Mark decoders as init-threadsafe

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Nov 27 03:02:11 EET 2020


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

diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 8ba38c6645..7f0af8564f 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -575,6 +575,7 @@ AVCodec ff_ ## name_ ## _decoder = {                                        \
     .capabilities   = AV_CODEC_CAP_DR1,                                     \
     .sample_fmts    = (const enum AVSampleFormat[]){ sample_fmt_,           \
                                                      AV_SAMPLE_FMT_NONE },  \
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,                         \
 }
 
 #define PCM_DECODER_2(cf, id, sample_fmt, name, long_name)                  \
-- 
2.25.1



More information about the ffmpeg-devel mailing list