Apply 'cold' attribute to init/uninit functions in libavcodec

Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Zuxy Meng
2008-03-21 03:11:20 +00:00
parent 77ab59eb7f
commit 98a6fff98c
145 changed files with 296 additions and 288 deletions

View File

@ -37,7 +37,7 @@ typedef struct
short lastSample[2];
} ROQDPCMContext_t;
static void roq_dpcm_table_init(void)
static av_cold void roq_dpcm_table_init(void)
{
int i;
@ -158,7 +158,7 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx,
return out - frame;
}
static int roq_dpcm_encode_close(AVCodecContext *avctx)
static av_cold int roq_dpcm_encode_close(AVCodecContext *avctx)
{
av_freep(&avctx->coded_frame);