Mercurial > libavcodec.hg
comparison apedec.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 | 258f569d30ca |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
183 res += *v1++ * *v2++; | 183 res += *v1++ * *v2++; |
184 | 184 |
185 return res; | 185 return res; |
186 } | 186 } |
187 | 187 |
188 static int ape_decode_init(AVCodecContext * avctx) | 188 static av_cold int ape_decode_init(AVCodecContext * avctx) |
189 { | 189 { |
190 APEContext *s = avctx->priv_data; | 190 APEContext *s = avctx->priv_data; |
191 int i; | 191 int i; |
192 | 192 |
193 if (avctx->extradata_size != 6) { | 193 if (avctx->extradata_size != 6) { |
222 | 222 |
223 dsputil_init(&s->dsp, avctx); | 223 dsputil_init(&s->dsp, avctx); |
224 return 0; | 224 return 0; |
225 } | 225 } |
226 | 226 |
227 static int ape_decode_close(AVCodecContext * avctx) | 227 static av_cold int ape_decode_close(AVCodecContext * avctx) |
228 { | 228 { |
229 APEContext *s = avctx->priv_data; | 229 APEContext *s = avctx->priv_data; |
230 int i; | 230 int i; |
231 | 231 |
232 for (i = 0; i < APE_FILTER_LEVELS; i++) | 232 for (i = 0; i < APE_FILTER_LEVELS; i++) |