comparison lclenc.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 e21873a1c00b
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
137 /* 137 /*
138 * 138 *
139 * Init lcl encoder 139 * Init lcl encoder
140 * 140 *
141 */ 141 */
142 static int encode_init(AVCodecContext *avctx) 142 static av_cold int encode_init(AVCodecContext *avctx)
143 { 143 {
144 LclEncContext *c = avctx->priv_data; 144 LclEncContext *c = avctx->priv_data;
145 int zret; // Zlib return code 145 int zret; // Zlib return code
146 146
147 #ifndef CONFIG_ZLIB 147 #ifndef CONFIG_ZLIB
205 /* 205 /*
206 * 206 *
207 * Uninit lcl encoder 207 * Uninit lcl encoder
208 * 208 *
209 */ 209 */
210 static int encode_end(AVCodecContext *avctx) 210 static av_cold int encode_end(AVCodecContext *avctx)
211 { 211 {
212 LclEncContext *c = avctx->priv_data; 212 LclEncContext *c = avctx->priv_data;
213 213
214 av_freep(&avctx->extradata); 214 av_freep(&avctx->extradata);
215 av_freep(&c->comp_buf); 215 av_freep(&c->comp_buf);