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

Andreas Rheinhardt git at videolan.org
Tue Nov 24 12:48:22 EET 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sun Nov 15 10:27:04 2020 +0100| [1463f9edcbdff88fd44dfe3bc17386c6b0488036] | committer: Andreas Rheinhardt

avcodec/smacker: Mark decoders as init-threadsafe

Both Smacker audio and video decoders don't use/modify any global state.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1463f9edcbdff88fd44dfe3bc17386c6b0488036
---

 libavcodec/smacker.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index 6b1faec09e..504f20e9a2 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -732,7 +732,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 = {
@@ -743,4 +743,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,
 };



More information about the ffmpeg-cvslog mailing list