[FFmpeg-devel] [PATCH 075/134] avcodec/mace: Mark decoders as init-threadsafe

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Mon Nov 30 02:53:55 EET 2020


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

diff --git a/libavcodec/mace.c b/libavcodec/mace.c
index e332a72d6d..c6b2bf12c5 100644
--- a/libavcodec/mace.c
+++ b/libavcodec/mace.c
@@ -295,6 +295,7 @@ AVCodec ff_mace3_decoder = {
     .capabilities   = AV_CODEC_CAP_DR1,
     .sample_fmts    = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P,
                                                       AV_SAMPLE_FMT_NONE },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 
 AVCodec ff_mace6_decoder = {
@@ -308,4 +309,5 @@ AVCodec ff_mace6_decoder = {
     .capabilities   = AV_CODEC_CAP_DR1,
     .sample_fmts    = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P,
                                                       AV_SAMPLE_FMT_NONE },
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
-- 
2.25.1



More information about the ffmpeg-devel mailing list