comparison gifdec.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 745a4216b352
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
267 } 267 }
268 } 268 }
269 return -1; 269 return -1;
270 } 270 }
271 271
272 static int gif_decode_init(AVCodecContext *avctx) 272 static av_cold int gif_decode_init(AVCodecContext *avctx)
273 { 273 {
274 GifState *s = avctx->priv_data; 274 GifState *s = avctx->priv_data;
275 275
276 s->avctx = avctx; 276 s->avctx = avctx;
277 277
312 *picture = s->picture; 312 *picture = s->picture;
313 *data_size = sizeof(AVPicture); 313 *data_size = sizeof(AVPicture);
314 return s->bytestream - buf; 314 return s->bytestream - buf;
315 } 315 }
316 316
317 static int gif_decode_close(AVCodecContext *avctx) 317 static av_cold int gif_decode_close(AVCodecContext *avctx)
318 { 318 {
319 GifState *s = avctx->priv_data; 319 GifState *s = avctx->priv_data;
320 320
321 ff_lzw_decode_close(&s->lzw); 321 ff_lzw_decode_close(&s->lzw);
322 if(s->picture.data[0]) 322 if(s->picture.data[0])