summaryrefslogtreecommitdiff
path: root/libavcodec/mscc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-05 20:50:16 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-10 22:12:01 +0200
commit730b8182b19b191e9d9b7a9f4e7685f8d1f91c7f (patch)
tree61f5ec82566764ea8097a653b35dae2db28ed347 /libavcodec/mscc.c
parent37670f7d078adc68804dc3bc3debb67783ae7de6 (diff)
downloadffmpeg-730b8182b19b191e9d9b7a9f4e7685f8d1f91c7f.tar.gz
avcodec/mscc: Mark decoders as init-threadsafe
Initializing zlib in the way we do here is threadsafe, see https://www.zlib.net/zlib_faq.html#faq21 Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mscc.c')
-rw-r--r--libavcodec/mscc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mscc.c b/libavcodec/mscc.c
index 027eb16085..d9a6de094a 100644
--- a/libavcodec/mscc.c
+++ b/libavcodec/mscc.c
@@ -262,7 +262,7 @@ const AVCodec ff_mscc_decoder = {
.close = decode_close,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
- .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
};
const AVCodec ff_srgc_decoder = {
@@ -275,5 +275,5 @@ const AVCodec ff_srgc_decoder = {
.close = decode_close,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
- .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
};