diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-15 10:27:04 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-24 11:35:03 +0100 |
commit | 1463f9edcbdff88fd44dfe3bc17386c6b0488036 (patch) | |
tree | 25973d4ec8ec43c0f99e7b3191623750bf6e3948 | |
parent | a6423412c17e22ebec2823c83b991b0f8b0d30c9 (diff) | |
download | ffmpeg-1463f9edcbdff88fd44dfe3bc17386c6b0488036.tar.gz |
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@gmail.com>
-rw-r--r-- | libavcodec/smacker.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, }; |