1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/zmbvenc: Mark encoder 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>
This commit is contained in:
Andreas Rheinhardt 2021-05-05 20:50:16 +02:00
parent 141f3053ba
commit 553619eacb

View File

@ -442,5 +442,5 @@ const AVCodec ff_zmbv_encoder = {
#endif //ZMBV_ENABLE_24BPP #endif //ZMBV_ENABLE_24BPP
AV_PIX_FMT_BGR0, AV_PIX_FMT_BGR0,
AV_PIX_FMT_NONE }, AV_PIX_FMT_NONE },
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
}; };