[FFmpeg-devel] [PATCH 104/134] avcodec/g729dec: Mark decoders as init-threadsafe

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Mon Nov 30 02:54:24 EET 2020


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

diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index c181f23452..a687af1eeb 100644
--- a/libavcodec/g729dec.c
+++ b/libavcodec/g729dec.c
@@ -760,6 +760,7 @@ AVCodec ff_g729_decoder = {
     .decode         = decode_frame,
     .close          = decode_close,
     .capabilities   = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
 
 AVCodec ff_acelp_kelvin_decoder = {
@@ -772,4 +773,5 @@ AVCodec ff_acelp_kelvin_decoder = {
     .decode         = decode_frame,
     .close          = decode_close,
     .capabilities   = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE,
 };
-- 
2.25.1



More information about the ffmpeg-devel mailing list