From 98a6fff98c3f2e963783e52fb193529bdc14e040 Mon Sep 17 00:00:00 2001 From: Zuxy Meng Date: Fri, 21 Mar 2008 03:11:20 +0000 Subject: Apply 'cold' attribute to init/uninit functions in libavcodec Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegaudioenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/mpegaudioenc.c') diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c index ede44927c2..5621dfbd85 100644 --- a/libavcodec/mpegaudioenc.c +++ b/libavcodec/mpegaudioenc.c @@ -61,7 +61,7 @@ typedef struct MpegAudioContext { #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 @@ static int MPA_encode_frame(AVCodecContext *avctx, 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; -- cgit v1.2.3