From af7acbb4b87ae44560dd4223b39c031c54923b63 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 17 Nov 2020 10:50:01 +0100 Subject: avcodec/motionpixels: Make decoder init-threadsafe Signed-off-by: Andreas Rheinhardt --- libavcodec/motionpixels_tablegen.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/motionpixels_tablegen.h') diff --git a/libavcodec/motionpixels_tablegen.h b/libavcodec/motionpixels_tablegen.h index 9239b6a667..fd10c80cba 100644 --- a/libavcodec/motionpixels_tablegen.h +++ b/libavcodec/motionpixels_tablegen.h @@ -84,8 +84,7 @@ static av_cold void mp_build_rgb_yuv_table(YuvPixel *p) static av_cold void motionpixels_tableinit(void) { - if (!mp_rgb_yuv_table[0].u) - mp_build_rgb_yuv_table(mp_rgb_yuv_table); + mp_build_rgb_yuv_table(mp_rgb_yuv_table); } #endif /* CONFIG_HARDCODED_TABLES */ -- cgit v1.2.3