swscale: Mark all init functions as av_cold
[ffmpeg.git] / libswscale / x86 / rgb2rgb.c
index 353b0aab2284a929bd52b92554e80f7df4262c67..f940888a70c67ab922f824767b4f7eedc6e233e5 100644 (file)
@@ -26,6 +26,7 @@
 #include <stdint.h>
 
 #include "config.h"
+#include "libavutil/attributes.h"
 #include "libavutil/x86_cpu.h"
 #include "libavutil/cpu.h"
 #include "libavutil/bswap.h"
@@ -127,7 +128,7 @@ DECLARE_ASM_CONST(8, uint64_t, blue_15mask)  = 0x0000001f0000001fULL;
 
 #endif /* HAVE_INLINE_ASM */
 
-void rgb2rgb_init_x86(void)
+av_cold void rgb2rgb_init_x86(void)
 {
 #if HAVE_INLINE_ASM
     int cpu_flags = av_get_cpu_flags();