Skip to content

Commit

Permalink
avcodec/zmbvenc: Mark encoder as init-threadsafe
Browse files Browse the repository at this point in the history
Initializing zlib in the way we do here is threadsafe, see
https://www.zlib.net/zlib_faq.html#faq21

Reviewed-by: Tomas Härdin <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
  • Loading branch information
mkver committed May 7, 2021
1 parent 141f305 commit 553619e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/zmbvenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 553619e

Please sign in to comment.