Mercurial > libavcodec.hg
diff cljr.c @ 6517:48759bfbd073 libavcodec
Apply 'cold' attribute to init/uninit functions in libavcodec
author | zuxy |
---|---|
date | Fri, 21 Mar 2008 03:11:20 +0000 |
parents | c32be43b52b2 |
children | a4104482ceef |
line wrap: on
line diff
--- a/cljr.c Thu Mar 20 19:36:20 2008 +0000 +++ b/cljr.c Fri Mar 21 03:11:20 2008 +0000 @@ -105,14 +105,14 @@ } #endif -static void common_init(AVCodecContext *avctx){ +static av_cold void common_init(AVCodecContext *avctx){ CLJRContext * const a = avctx->priv_data; avctx->coded_frame= (AVFrame*)&a->picture; a->avctx= avctx; } -static int decode_init(AVCodecContext *avctx){ +static av_cold int decode_init(AVCodecContext *avctx){ common_init(avctx); @@ -122,7 +122,7 @@ } #if 0 -static int encode_init(AVCodecContext *avctx){ +static av_cold int encode_init(AVCodecContext *avctx){ common_init(avctx);