avcodec/zmbvenc: Mark encoder as init-threadsafe
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Wed, 5 May 2021 18:50:16 +0000 (20:50 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Fri, 7 May 2021 07:26:26 +0000 (09:26 +0200)
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>
libavcodec/zmbvenc.c

index d0c353d0df4ca8fe0a23e328bc048daac0e5496a..b431476241f33d6ede1730e3df283818fd4ef792 100644 (file)
@@ -442,5 +442,5 @@ const AVCodec ff_zmbv_encoder = {
 #endif //ZMBV_ENABLE_24BPP
                                                      AV_PIX_FMT_BGR0,
                                                      AV_PIX_FMT_NONE },
-    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
 };