swscale: Mark all init functions as av_cold
[ffmpeg.git] / libswscale / x86 / swscale.c
index b57b7a4c5813c8b6d7ffee86b783f33fee405e29..a0c18c79fc7ef4cd0bbf3a9810e818e8c830c31a 100644 (file)
@@ -22,6 +22,7 @@
 #include "config.h"
 #include "libswscale/swscale.h"
 #include "libswscale/swscale_internal.h"
+#include "libavutil/attributes.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/x86_cpu.h"
 #include "libavutil/cpu.h"
@@ -300,7 +301,7 @@ INPUT_FUNCS(sse2);
 INPUT_FUNCS(ssse3);
 INPUT_FUNCS(avx);
 
-void ff_sws_init_swScale_mmx(SwsContext *c)
+av_cold void ff_sws_init_swScale_mmx(SwsContext *c)
 {
     int cpu_flags = av_get_cpu_flags();