Re: [FFmpeg-devel] [PATCH] libswscale: Make sws_init_context thread safe.

2021-06-28 Thread Peter Lundblad
Hi, Would anyone consider applying this fairly simple patch to fix a multi-threading issue in the sws initialization code? Regards, //Peter On Wed, Apr 28, 2021 at 11:51 AM Peter Lundblad wrote: > Call ff_sws_rgb2rgb_init via ff_thread_once instead of checking one of the > variab

[FFmpeg-devel] [PATCH] libswscale: Make sws_init_context thread safe.

2021-04-28 Thread Peter Lundblad
Call ff_sws_rgb2rgb_init via ff_thread_once instead of checking one of the variables it updates. --- libswscale/utils.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libswscale/utils.c b/libswscale/utils.c index 6bac7b658d..d673209d95 100644 --- a/libswscale/utils.c +++