Mercurial > libavcodec.hg
diff ac3enc.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 | dbb902bb2347 |
children | 5b3acf9fd50a |
line wrap: on
line diff
--- a/ac3enc.c Thu Mar 20 19:36:20 2008 +0000 +++ b/ac3enc.c Fri Mar 21 03:11:20 2008 +0000 @@ -608,7 +608,7 @@ return 0; } -static int AC3_encode_init(AVCodecContext *avctx) +static av_cold int AC3_encode_init(AVCodecContext *avctx) { int freq = avctx->sample_rate; int bitrate = avctx->bit_rate; @@ -1255,7 +1255,7 @@ return output_frame_end(s); } -static int AC3_encode_close(AVCodecContext *avctx) +static av_cold int AC3_encode_close(AVCodecContext *avctx) { av_freep(&avctx->coded_frame); return 0;