[FFmpeg-devel] [PATCH v2 009/162] avcodec/smacker: Mark decoders as init-threadsafe
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Fri Nov 20 09:18:42 EET 2020
Both Smacker audio and video decoders don't use/modify any global state.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavcodec/smacker.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index 871a76257a..8db33c9275 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -730,7 +730,7 @@ AVCodec ff_smacker_decoder = {
.close = decode_end,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
- .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE,
};
AVCodec ff_smackaud_decoder = {
@@ -741,4 +741,5 @@ AVCodec ff_smackaud_decoder = {
.init = smka_decode_init,
.decode = smka_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};
--
2.25.1
More information about the ffmpeg-devel
mailing list