tor 2021-05-06 klockan 07:11 +0200 skrev Andreas Rheinhardt: > Initializing zlib in the way we do here is threadsafe, see > https://www.zlib.net/zlib_faq.html#faq21 > > Signed-off-by: Andreas Rheinhardt <[email protected]> > --- > 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, > };
Looks good to me. Same goes for the encoder version of this. /Tomas _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
