swscale: Mark all init functions as av_cold
[ffmpeg.git] / libswscale / utils.c
index a6b5a186fd354de87810e9f63ac6e950f35fe9d1..4960194f373379ad8ebff97065ba0e964b8af548 100644 (file)
@@ -37,6 +37,7 @@
 #include <windows.h>
 #endif
 
+#include "libavutil/attributes.h"
 #include "libavutil/avutil.h"
 #include "libavutil/bswap.h"
 #include "libavutil/cpu.h"
@@ -823,7 +824,8 @@ SwsContext *sws_alloc_context(void)
     return c;
 }
 
-int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
+av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter,
+                             SwsFilter *dstFilter)
 {
     int i;
     int usesVFilter, usesHFilter;