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

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


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Thu Nov 26 16:40:42 2020 +0100| [5ff030f922c0fea0c8659866da33340b64afe8f0] | committer: Andreas Rheinhardt

avcodec/pcm: Mark decoders as init-threadsafe

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=5ff030f922c0fea0c8659866da33340b64afe8f0
---

 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)                  \



More information about the ffmpeg-cvslog mailing list