]> git.sesse.net Git - ffmpeg/commit
avcodec/ituh263enc: Make static initializations thread-safe
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 2 Dec 2020 00:58:09 +0000 (01:58 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 26 Apr 2021 22:30:36 +0000 (00:30 +0200)
commitfea1f42e5f82db01ef3eec6ee8b0862944a5e319
tree6e84c05d9dc225ee9322aac97443100d4de91a37
parentad184c8e363018044715cbe9ebc0b576e54a6438
avcodec/ituh263enc: Make static initializations thread-safe

This already makes several encoders (namely FLV, H.263, H.263+ and
RealVideo 1.0 and 2.0 and SVQ1) that use this init-threadsafe.

It also makes the Snow encoder init-threadsafe; it was already marked
as such since commit d49210788b0836d56dd872d517fe73f83b080101, because
it was thought to be harmless if one and the same object was
initialized by multiple threads at the same time.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/flvenc.c
libavcodec/ituh263enc.c
libavcodec/mpegvideo_enc.c
libavcodec/rv10enc.c
libavcodec/rv20enc.c
libavcodec/svq1enc.c