summaryrefslogtreecommitdiff
path: root/libavcodec/asv1.c
diff options
context:
space:
mode:
authorZuxy Meng <zuxy.meng@gmail.com>2008-03-21 03:11:20 +0000
committerZuxy Meng <zuxy.meng@gmail.com>2008-03-21 03:11:20 +0000
commit98a6fff98c3f2e963783e52fb193529bdc14e040 (patch)
treed950fcf03110d5716c0d348f0ffbbc5f459b71aa /libavcodec/asv1.c
parent77ab59eb7ff28d8183ea51c5a46aab3b430edd9c (diff)
Apply 'cold' attribute to init/uninit functions in libavcodec
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/asv1.c')
-rw-r--r--libavcodec/asv1.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c
index 871fdf5917..f7d3f4c462 100644
--- a/libavcodec/asv1.c
+++ b/libavcodec/asv1.c
@@ -113,7 +113,7 @@ static VLC dc_ccp_vlc;
static VLC ac_ccp_vlc;
static VLC asv2_level_vlc;
-static void init_vlcs(ASV1Context *a){
+static av_cold void init_vlcs(ASV1Context *a){
static int done = 0;
if (!done) {
@@ -521,7 +521,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
}
#endif /* CONFIG_ENCODERS */
-static void common_init(AVCodecContext *avctx){
+static av_cold void common_init(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
dsputil_init(&a->dsp, avctx);
@@ -535,7 +535,7 @@ static void common_init(AVCodecContext *avctx){
a->avctx= avctx;
}
-static int decode_init(AVCodecContext *avctx){
+static av_cold int decode_init(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
AVFrame *p= (AVFrame*)&a->picture;
int i;
@@ -570,7 +570,7 @@ static int decode_init(AVCodecContext *avctx){
}
#ifdef CONFIG_ENCODERS
-static int encode_init(AVCodecContext *avctx){
+static av_cold int encode_init(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
int i;
const int scale= avctx->codec_id == CODEC_ID_ASV1 ? 1 : 2;
@@ -595,7 +595,7 @@ static int encode_init(AVCodecContext *avctx){
}
#endif
-static int decode_end(AVCodecContext *avctx){
+static av_cold int decode_end(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
av_freep(&a->bitstream_buffer);