From e51fad097b81da868a1bc8ce9757dbd9a4e3c374 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 5 May 2021 20:50:16 +0200 Subject: avcodec/zmbv: Mark decoder as init-threadsafe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initializing zlib in the way we do here is threadsafe, see https://www.zlib.net/zlib_faq.html#faq21 Reviewed-by: Tomas Härdin Signed-off-by: Andreas Rheinhardt --- libavcodec/zmbv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }; -- cgit v1.2.3