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/ffv1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavcodec/ffv1.c') diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index d0f2efbfe3..14e39ca4a2 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -530,7 +530,7 @@ static void write_header(FFV1Context *f){ } #endif /* CONFIG_ENCODERS */ -static int common_init(AVCodecContext *avctx){ +static av_cold int common_init(AVCodecContext *avctx){ FFV1Context *s = avctx->priv_data; int width, height; @@ -548,7 +548,7 @@ static int common_init(AVCodecContext *avctx){ } #ifdef CONFIG_ENCODERS -static int encode_init(AVCodecContext *avctx) +static av_cold int encode_init(AVCodecContext *avctx) { FFV1Context *s = avctx->priv_data; int i; @@ -694,7 +694,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, } #endif /* CONFIG_ENCODERS */ -static int common_end(AVCodecContext *avctx){ +static av_cold int common_end(AVCodecContext *avctx){ FFV1Context *s = avctx->priv_data; int i; @@ -927,7 +927,7 @@ static int read_header(FFV1Context *f){ return 0; } -static int decode_init(AVCodecContext *avctx) +static av_cold int decode_init(AVCodecContext *avctx) { // FFV1Context *s = avctx->priv_data; -- cgit v1.2.3