aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/snow.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/snow.c
parent77ab59eb7ff28d8183ea51c5a46aab3b430edd9c (diff)
downloadffmpeg-98a6fff98c3f2e963783e52fb193529bdc14e040.tar.gz
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/snow.c')
-rw-r--r--libavcodec/snow.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index 8fcf548761..b5a381024c 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -3640,7 +3640,7 @@ static void init_qexp(void){
}
}
-static int common_init(AVCodecContext *avctx){
+static av_cold int common_init(AVCodecContext *avctx){
SnowContext *s = avctx->priv_data;
int width, height;
int i, j;
@@ -3960,7 +3960,7 @@ static void dwt_quantize(SnowContext *s, Plane *p, DWTELEM *buffer, int width, i
#endif /* QUANTIZE2==1 */
-static int encode_init(AVCodecContext *avctx)
+static av_cold int encode_init(AVCodecContext *avctx)
{
SnowContext *s = avctx->priv_data;
int plane_index;
@@ -4426,7 +4426,7 @@ redo_frame:
return ff_rac_terminate(c);
}
-static void common_end(SnowContext *s){
+static av_cold void common_end(SnowContext *s){
int plane_index, level, orientation, i;
av_freep(&s->spatial_dwt_buffer);
@@ -4457,7 +4457,7 @@ static void common_end(SnowContext *s){
}
}
-static int encode_end(AVCodecContext *avctx)
+static av_cold int encode_end(AVCodecContext *avctx)
{
SnowContext *s = avctx->priv_data;
@@ -4467,7 +4467,7 @@ static int encode_end(AVCodecContext *avctx)
return 0;
}
-static int decode_init(AVCodecContext *avctx)
+static av_cold int decode_init(AVCodecContext *avctx)
{
avctx->pix_fmt= PIX_FMT_YUV420P;
@@ -4639,7 +4639,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const
return bytes_read;
}
-static int decode_end(AVCodecContext *avctx)
+static av_cold int decode_end(AVCodecContext *avctx)
{
SnowContext *s = avctx->priv_data;