comparison tiff.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 e7c178d397ea
children 6eeb19edcee3
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
459 *data_size = sizeof(AVPicture); 459 *data_size = sizeof(AVPicture);
460 460
461 return buf_size; 461 return buf_size;
462 } 462 }
463 463
464 static int tiff_init(AVCodecContext *avctx){ 464 static av_cold int tiff_init(AVCodecContext *avctx){
465 TiffContext *s = avctx->priv_data; 465 TiffContext *s = avctx->priv_data;
466 466
467 s->width = 0; 467 s->width = 0;
468 s->height = 0; 468 s->height = 0;
469 s->avctx = avctx; 469 s->avctx = avctx;
473 ff_lzw_decode_open(&s->lzw); 473 ff_lzw_decode_open(&s->lzw);
474 474
475 return 0; 475 return 0;
476 } 476 }
477 477
478 static int tiff_end(AVCodecContext *avctx) 478 static av_cold int tiff_end(AVCodecContext *avctx)
479 { 479 {
480 TiffContext * const s = avctx->priv_data; 480 TiffContext * const s = avctx->priv_data;
481 481
482 ff_lzw_decode_close(&s->lzw); 482 ff_lzw_decode_close(&s->lzw);
483 if(s->picture.data[0]) 483 if(s->picture.data[0])