libswscale: Make sws_init_context thread safe.
authorPeter Lundblad <plundblad@google.com>
Wed, 28 Apr 2021 09:51:23 +0000 (11:51 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 1 Jul 2021 21:49:41 +0000 (23:49 +0200)
commitda0abbbb01cae21039e2db028467d0f489c9c9ae
tree59ae09a703f16f97feb8f40ae4b4cd7acdd8aea9
parentde8e6e67e7523e48bb27ac224a0b446df05e1640
libswscale: Make sws_init_context thread safe.

Call ff_sws_rgb2rgb_init via ff_thread_once instead of checking one of the
variables it updates.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswscale/utils.c