comparison 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
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
103 103
104 return size*4; 104 return size*4;
105 } 105 }
106 #endif 106 #endif
107 107
108 static void common_init(AVCodecContext *avctx){ 108 static av_cold void common_init(AVCodecContext *avctx){
109 CLJRContext * const a = avctx->priv_data; 109 CLJRContext * const a = avctx->priv_data;
110 110
111 avctx->coded_frame= (AVFrame*)&a->picture; 111 avctx->coded_frame= (AVFrame*)&a->picture;
112 a->avctx= avctx; 112 a->avctx= avctx;
113 } 113 }
114 114
115 static int decode_init(AVCodecContext *avctx){ 115 static av_cold int decode_init(AVCodecContext *avctx){
116 116
117 common_init(avctx); 117 common_init(avctx);
118 118
119 avctx->pix_fmt= PIX_FMT_YUV411P; 119 avctx->pix_fmt= PIX_FMT_YUV411P;
120 120
121 return 0; 121 return 0;
122 } 122 }
123 123
124 #if 0 124 #if 0
125 static int encode_init(AVCodecContext *avctx){ 125 static av_cold int encode_init(AVCodecContext *avctx){
126 126
127 common_init(avctx); 127 common_init(avctx);
128 128
129 return 0; 129 return 0;
130 } 130 }