Mercurial > libavcodec.hg
comparison mpegaudiodec.c @ 9007:043574c5c153 libavcodec
Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu.
author | stefano |
---|---|
date | Sun, 22 Feb 2009 13:48:55 +0000 |
parents | e9d9d946f213 |
children | 54bc8a2727b0 |
comparison
equal
deleted
inserted
replaced
9006:37ac731fe32c | 9007:043574c5c153 |
---|---|
248 POW_FIX(1.25992104989487316476), | 248 POW_FIX(1.25992104989487316476), |
249 POW_FIX(1.58740105196819947474), | 249 POW_FIX(1.58740105196819947474), |
250 }; | 250 }; |
251 #endif | 251 #endif |
252 | 252 |
253 static void int_pow_init(void) | 253 static av_cold void int_pow_init(void) |
254 { | 254 { |
255 int i, a; | 255 int i, a; |
256 | 256 |
257 a = POW_FIX(1.0); | 257 a = POW_FIX(1.0); |
258 for(i=0;i<DEV_ORDER;i++) { | 258 for(i=0;i<DEV_ORDER;i++) { |
306 *exp_ptr = eq; | 306 *exp_ptr = eq; |
307 return a; | 307 return a; |
308 } | 308 } |
309 #endif | 309 #endif |
310 | 310 |
311 static int decode_init(AVCodecContext * avctx) | 311 static av_cold int decode_init(AVCodecContext * avctx) |
312 { | 312 { |
313 MPADecodeContext *s = avctx->priv_data; | 313 MPADecodeContext *s = avctx->priv_data; |
314 static int init=0; | 314 static int init=0; |
315 int i, j, k; | 315 int i, j, k; |
316 | 316 |
827 tmp = p[7 * 64];\ | 827 tmp = p[7 * 64];\ |
828 op1(sum1, (w1)[7 * 64], tmp);\ | 828 op1(sum1, (w1)[7 * 64], tmp);\ |
829 op2(sum2, (w2)[7 * 64], tmp);\ | 829 op2(sum2, (w2)[7 * 64], tmp);\ |
830 } | 830 } |
831 | 831 |
832 void ff_mpa_synth_init(MPA_INT *window) | 832 void av_cold ff_mpa_synth_init(MPA_INT *window) |
833 { | 833 { |
834 int i; | 834 int i; |
835 | 835 |
836 /* max = 18760, max sum over all 16 coefs : 44736 */ | 836 /* max = 18760, max sum over all 16 coefs : 44736 */ |
837 for(i=0;i<257;i++) { | 837 for(i=0;i<257;i++) { |
2442 | 2442 |
2443 return 0; | 2443 return 0; |
2444 } | 2444 } |
2445 | 2445 |
2446 | 2446 |
2447 static int decode_close_mp3on4(AVCodecContext * avctx) | 2447 static av_cold int decode_close_mp3on4(AVCodecContext * avctx) |
2448 { | 2448 { |
2449 MP3On4DecodeContext *s = avctx->priv_data; | 2449 MP3On4DecodeContext *s = avctx->priv_data; |
2450 int i; | 2450 int i; |
2451 | 2451 |
2452 for (i = 0; i < s->frames; i++) | 2452 for (i = 0; i < s->frames; i++) |