FFmpeg/libavcodec
Andreas Rheinhardt 6a94afbd5b avcodec/snow: Use ff_thread_once() in ff_snow_common_init()
ff_snow_common_init() currently initializes static data every time it is
invoked; given that both the Snow encoder and decoder have the
FF_CODEC_CAP_INIT_THREADSAFE flag set, this can lead to data races (and
therefore undefined behaviour) even though all threads write the same
values. This commit fixes this by using ff_thread_once() for the
initializations.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-12-10 01:36:16 +01:00
..
2020-12-08 17:51:48 +01:00
2020-12-08 17:51:47 +01:00
2020-12-08 17:51:44 +01:00
2020-12-08 17:51:45 +01:00
2020-12-08 17:51:48 +01:00
2020-11-12 15:55:16 +01:00
2020-11-10 02:14:29 +01:00
2020-11-24 11:35:03 +01:00
2020-11-24 11:35:03 +01:00
2020-12-08 17:51:47 +01:00
2020-12-08 17:51:45 +01:00
2020-12-08 17:51:46 +01:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-12-08 17:51:46 +01:00
2020-12-08 17:51:47 +01:00
2020-11-11 18:36:09 +01:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-12-08 17:51:44 +01:00