From 98a6fff98c3f2e963783e52fb193529bdc14e040 Mon Sep 17 00:00:00 2001 From: Zuxy Meng Date: Fri, 21 Mar 2008 03:11:20 +0000 Subject: Apply 'cold' attribute to init/uninit functions in libavcodec Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/huffyuv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavcodec/huffyuv.c') diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index dddcdf1dba..18f21d4068 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -478,7 +478,7 @@ static int common_init(AVCodecContext *avctx){ } #ifdef CONFIG_DECODERS -static int decode_init(AVCodecContext *avctx) +static av_cold int decode_init(AVCodecContext *avctx) { HYuvContext *s = avctx->priv_data; @@ -599,7 +599,7 @@ static int store_table(HYuvContext *s, uint8_t *len, uint8_t *buf){ return index; } -static int encode_init(AVCodecContext *avctx) +static av_cold int encode_init(AVCodecContext *avctx) { HYuvContext *s = avctx->priv_data; int i, j; @@ -1210,7 +1210,7 @@ static int common_end(HYuvContext *s){ } #ifdef CONFIG_DECODERS -static int decode_end(AVCodecContext *avctx) +static av_cold int decode_end(AVCodecContext *avctx) { HYuvContext *s = avctx->priv_data; int i; @@ -1420,7 +1420,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, return size*4; } -static int encode_end(AVCodecContext *avctx) +static av_cold int encode_end(AVCodecContext *avctx) { HYuvContext *s = avctx->priv_data; -- cgit v1.2.1