From 6fee1b90ce3bf4fbdfde7016e0890057c9000487 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 1 Feb 2013 10:31:59 +0100 Subject: avcodec: Add av_cold attributes to init functions missing them --- libavcodec/h264chroma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/h264chroma.c') diff --git a/libavcodec/h264chroma.c b/libavcodec/h264chroma.c index 6194c4d1bd..8aa5e93e0d 100644 --- a/libavcodec/h264chroma.c +++ b/libavcodec/h264chroma.c @@ -17,6 +17,7 @@ */ #include "config.h" +#include "libavutil/attributes.h" #include "h264chroma.h" #define BIT_DEPTH 8 @@ -35,7 +36,7 @@ c->avg_h264_chroma_pixels_tab[1] = avg_h264_chroma_mc4_ ## depth ## _c; \ c->avg_h264_chroma_pixels_tab[2] = avg_h264_chroma_mc2_ ## depth ## _c; \ -void ff_h264chroma_init(H264ChromaContext *c, int bit_depth) +av_cold void ff_h264chroma_init(H264ChromaContext *c, int bit_depth) { if (bit_depth > 8 && bit_depth <= 16) { SET_CHROMA(16); -- cgit v1.2.3