comparison sgidec.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 dfdff1ca78a7
children 6eeb19edcee3
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
233 } else { 233 } else {
234 return -1; 234 return -1;
235 } 235 }
236 } 236 }
237 237
238 static int sgi_init(AVCodecContext *avctx){ 238 static av_cold int sgi_init(AVCodecContext *avctx){
239 SgiState *s = avctx->priv_data; 239 SgiState *s = avctx->priv_data;
240 240
241 avcodec_get_frame_defaults(&s->picture); 241 avcodec_get_frame_defaults(&s->picture);
242 avctx->coded_frame = &s->picture; 242 avctx->coded_frame = &s->picture;
243 243
244 return 0; 244 return 0;
245 } 245 }
246 246
247 static int sgi_end(AVCodecContext *avctx) 247 static av_cold int sgi_end(AVCodecContext *avctx)
248 { 248 {
249 SgiState * const s = avctx->priv_data; 249 SgiState * const s = avctx->priv_data;
250 250
251 if (s->picture.data[0]) 251 if (s->picture.data[0])
252 avctx->release_buffer(avctx, &s->picture); 252 avctx->release_buffer(avctx, &s->picture);