aboutsummaryrefslogtreecommitdiffstats
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-07 09:25:10 +0200
commite51fad097b81da868a1bc8ce9757dbd9a4e3c374 (patch)
tree81580061bb8257be1773d5181c6ef117f9adebea
parent9d752ab634f7de9b15a9296a81325b4276e99192 (diff)
downloadffmpeg-e51fad097b81da868a1bc8ce9757dbd9a4e3c374.tar.gz
avcodec/zmbv: Mark decoder as init-threadsafe
Initializing zlib in the way we do here is threadsafe, see https://www.zlib.net/zlib_faq.html#faq21 Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/zmbv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index 4cc0476f4d..0a5bb40ad5 100644
--- a/libavcodec/zmbv.c
+++ b/libavcodec/zmbv.c
@@ -664,5 +664,5 @@ const AVCodec ff_zmbv_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_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
};