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/asv1.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavcodec/asv1.c') diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c index 871fdf5917..f7d3f4c462 100644 --- a/libavcodec/asv1.c +++ b/libavcodec/asv1.c @@ -113,7 +113,7 @@ static VLC dc_ccp_vlc; static VLC ac_ccp_vlc; static VLC asv2_level_vlc; -static void init_vlcs(ASV1Context *a){ +static av_cold void init_vlcs(ASV1Context *a){ static int done = 0; if (!done) { @@ -521,7 +521,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, } #endif /* CONFIG_ENCODERS */ -static void common_init(AVCodecContext *avctx){ +static av_cold void common_init(AVCodecContext *avctx){ ASV1Context * const a = avctx->priv_data; dsputil_init(&a->dsp, avctx); @@ -535,7 +535,7 @@ static void common_init(AVCodecContext *avctx){ a->avctx= avctx; } -static int decode_init(AVCodecContext *avctx){ +static av_cold int decode_init(AVCodecContext *avctx){ ASV1Context * const a = avctx->priv_data; AVFrame *p= (AVFrame*)&a->picture; int i; @@ -570,7 +570,7 @@ static int decode_init(AVCodecContext *avctx){ } #ifdef CONFIG_ENCODERS -static int encode_init(AVCodecContext *avctx){ +static av_cold int encode_init(AVCodecContext *avctx){ ASV1Context * const a = avctx->priv_data; int i; const int scale= avctx->codec_id == CODEC_ID_ASV1 ? 1 : 2; @@ -595,7 +595,7 @@ static int encode_init(AVCodecContext *avctx){ } #endif -static int decode_end(AVCodecContext *avctx){ +static av_cold int decode_end(AVCodecContext *avctx){ ASV1Context * const a = avctx->priv_data; av_freep(&a->bitstream_buffer); -- cgit v1.2.3