avcodec/pngenc: Mark encoders 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>
This commit is contained in:
Andreas Rheinhardt 2021-05-05 20:50:16 +02:00
parent f100a7de5c
commit 413ec81ba8
1 changed files with 2 additions and 0 deletions

View File

@ -1140,6 +1140,7 @@ const AVCodec ff_png_encoder = {
AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_NONE
},
.priv_class = &pngenc_class,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};
const AVCodec ff_apng_encoder = {
@ -1161,4 +1162,5 @@ const AVCodec ff_apng_encoder = {
AV_PIX_FMT_NONE
},
.priv_class = &apngenc_class,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};