Mercurial > libavcodec.hg
diff mpegaudioenc.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 | 94c3f01c243c |
children | 5b3acf9fd50a |
line wrap: on
line diff
--- a/mpegaudioenc.c Thu Mar 20 19:36:20 2008 +0000 +++ b/mpegaudioenc.c Fri Mar 21 03:11:20 2008 +0000 @@ -61,7 +61,7 @@ #include "mpegaudiodata.h" #include "mpegaudiotab.h" -static int MPA_encode_init(AVCodecContext *avctx) +static av_cold int MPA_encode_init(AVCodecContext *avctx) { MpegAudioContext *s = avctx->priv_data; int freq = avctx->sample_rate; @@ -781,7 +781,7 @@ return pbBufPtr(&s->pb) - s->pb.buf; } -static int MPA_encode_close(AVCodecContext *avctx) +static av_cold int MPA_encode_close(AVCodecContext *avctx) { av_freep(&avctx->coded_frame); return 0;