Mercurial > libavcodec.hg
comparison alac.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 | b42a510e0939 |
children | eb001d01785c |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
622 } | 622 } |
623 | 623 |
624 return input_buffer_size; | 624 return input_buffer_size; |
625 } | 625 } |
626 | 626 |
627 static int alac_decode_init(AVCodecContext * avctx) | 627 static av_cold int alac_decode_init(AVCodecContext * avctx) |
628 { | 628 { |
629 ALACContext *alac = avctx->priv_data; | 629 ALACContext *alac = avctx->priv_data; |
630 alac->avctx = avctx; | 630 alac->avctx = avctx; |
631 alac->context_initialized = 0; | 631 alac->context_initialized = 0; |
632 | 632 |
635 alac->bytespersample = (alac->samplesize / 8) * alac->numchannels; | 635 alac->bytespersample = (alac->samplesize / 8) * alac->numchannels; |
636 | 636 |
637 return 0; | 637 return 0; |
638 } | 638 } |
639 | 639 |
640 static int alac_decode_close(AVCodecContext *avctx) | 640 static av_cold int alac_decode_close(AVCodecContext *avctx) |
641 { | 641 { |
642 ALACContext *alac = avctx->priv_data; | 642 ALACContext *alac = avctx->priv_data; |
643 | 643 |
644 int chan; | 644 int chan; |
645 for (chan = 0; chan < MAX_CHANNELS; chan++) { | 645 for (chan = 0; chan < MAX_CHANNELS; chan++) { |