[FFmpeg-devel] [PATCH 102/134] avcodec/g726: Mark decoders as init-threadsafe
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Mon Nov 30 02:54:22 EET 2020
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavcodec/g726.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index 80cb064912..6f8aa6a725 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -514,6 +514,7 @@ AVCodec ff_adpcm_g726_decoder = {
.decode = g726_decode_frame,
.flush = g726_decode_flush,
.capabilities = AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};
#endif
@@ -528,5 +529,6 @@ AVCodec ff_adpcm_g726le_decoder = {
.flush = g726_decode_flush,
.capabilities = AV_CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM little-endian"),
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};
#endif
--
2.25.1
More information about the ffmpeg-devel
mailing list