comparison cscd.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 5f4bdfd1aa0e
children a4104482ceef
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
210 *picture = c->pic; 210 *picture = c->pic;
211 *data_size = sizeof(AVFrame); 211 *data_size = sizeof(AVFrame);
212 return buf_size; 212 return buf_size;
213 } 213 }
214 214
215 static int decode_init(AVCodecContext *avctx) { 215 static av_cold int decode_init(AVCodecContext *avctx) {
216 CamStudioContext *c = avctx->priv_data; 216 CamStudioContext *c = avctx->priv_data;
217 if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { 217 if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) {
218 return 1; 218 return 1;
219 } 219 }
220 switch (avctx->bits_per_sample) { 220 switch (avctx->bits_per_sample) {
238 return 1; 238 return 1;
239 } 239 }
240 return 0; 240 return 0;
241 } 241 }
242 242
243 static int decode_end(AVCodecContext *avctx) { 243 static av_cold int decode_end(AVCodecContext *avctx) {
244 CamStudioContext *c = avctx->priv_data; 244 CamStudioContext *c = avctx->priv_data;
245 av_freep(&c->decomp_buf); 245 av_freep(&c->decomp_buf);
246 if (c->pic.data[0]) 246 if (c->pic.data[0])
247 avctx->release_buffer(avctx, &c->pic); 247 avctx->release_buffer(avctx, &c->pic);
248 return 0; 248 return 0;