Mercurial > libavcodec.hg
comparison shorten.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 | f9d2ca73e3b6 |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
98 int blocksize; | 98 int blocksize; |
99 int bitindex; | 99 int bitindex; |
100 int32_t lpcqoffset; | 100 int32_t lpcqoffset; |
101 } ShortenContext; | 101 } ShortenContext; |
102 | 102 |
103 static int shorten_decode_init(AVCodecContext * avctx) | 103 static av_cold int shorten_decode_init(AVCodecContext * avctx) |
104 { | 104 { |
105 ShortenContext *s = avctx->priv_data; | 105 ShortenContext *s = avctx->priv_data; |
106 s->avctx = avctx; | 106 s->avctx = avctx; |
107 | 107 |
108 return 0; | 108 return 0; |
499 return input_buf_size; | 499 return input_buf_size; |
500 } else | 500 } else |
501 return i; | 501 return i; |
502 } | 502 } |
503 | 503 |
504 static int shorten_decode_close(AVCodecContext *avctx) | 504 static av_cold int shorten_decode_close(AVCodecContext *avctx) |
505 { | 505 { |
506 ShortenContext *s = avctx->priv_data; | 506 ShortenContext *s = avctx->priv_data; |
507 int i; | 507 int i; |
508 | 508 |
509 for (i = 0; i < s->channels; i++) { | 509 for (i = 0; i < s->channels; i++) { |