Mercurial > libavcodec.hg
comparison nellymoserdec.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 | dfdff1ca78a7 |
children | 075d1d2b49a2 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
327 memcpy(&aptr[NELLY_BUF_LEN / 2],&s->imdct_out[0],(NELLY_BUF_LEN/2)*sizeof(float)); | 327 memcpy(&aptr[NELLY_BUF_LEN / 2],&s->imdct_out[0],(NELLY_BUF_LEN/2)*sizeof(float)); |
328 overlap_and_window(s, s->state, aptr); | 328 overlap_and_window(s, s->state, aptr); |
329 } | 329 } |
330 } | 330 } |
331 | 331 |
332 static int decode_init(AVCodecContext * avctx) { | 332 static av_cold int decode_init(AVCodecContext * avctx) { |
333 NellyMoserDecodeContext *s = avctx->priv_data; | 333 NellyMoserDecodeContext *s = avctx->priv_data; |
334 int i; | 334 int i; |
335 | 335 |
336 s->avctx = avctx; | 336 s->avctx = avctx; |
337 av_init_random(0, &s->random_state); | 337 av_init_random(0, &s->random_state); |
389 } | 389 } |
390 | 390 |
391 return buf_size; | 391 return buf_size; |
392 } | 392 } |
393 | 393 |
394 static int decode_end(AVCodecContext * avctx) { | 394 static av_cold int decode_end(AVCodecContext * avctx) { |
395 NellyMoserDecodeContext *s = avctx->priv_data; | 395 NellyMoserDecodeContext *s = avctx->priv_data; |
396 | 396 |
397 ff_mdct_end(&s->imdct_ctx); | 397 ff_mdct_end(&s->imdct_ctx); |
398 return 0; | 398 return 0; |
399 } | 399 } |