comparison tta.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 838520e2b6f0
children 6eeb19edcee3
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
195 while(get_bits1(gb)) 195 while(get_bits1(gb))
196 ret++; 196 ret++;
197 return ret; 197 return ret;
198 } 198 }
199 199
200 static int tta_decode_init(AVCodecContext * avctx) 200 static av_cold int tta_decode_init(AVCodecContext * avctx)
201 { 201 {
202 TTAContext *s = avctx->priv_data; 202 TTAContext *s = avctx->priv_data;
203 int i; 203 int i;
204 204
205 s->avctx = avctx; 205 s->avctx = avctx;
423 423
424 // return get_bits_count(&s->gb)+7)/8; 424 // return get_bits_count(&s->gb)+7)/8;
425 return buf_size; 425 return buf_size;
426 } 426 }
427 427
428 static int tta_decode_close(AVCodecContext *avctx) { 428 static av_cold int tta_decode_close(AVCodecContext *avctx) {
429 TTAContext *s = avctx->priv_data; 429 TTAContext *s = avctx->priv_data;
430 430
431 if (s->decode_buffer) 431 if (s->decode_buffer)
432 av_free(s->decode_buffer); 432 av_free(s->decode_buffer);
433 433