comparison flashsvenc.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 1eebbc25db1f
children a4104482ceef
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
95 if (diff) 95 if (diff)
96 return 1; 96 return 1;
97 return 0; 97 return 0;
98 } 98 }
99 99
100 static int flashsv_encode_init(AVCodecContext *avctx) 100 static av_cold int flashsv_encode_init(AVCodecContext *avctx)
101 { 101 {
102 FlashSVContext *s = avctx->priv_data; 102 FlashSVContext *s = avctx->priv_data;
103 103
104 s->avctx = avctx; 104 s->avctx = avctx;
105 105
269 avctx->coded_frame = p; 269 avctx->coded_frame = p;
270 270
271 return res; 271 return res;
272 } 272 }
273 273
274 static int flashsv_encode_end(AVCodecContext *avctx) 274 static av_cold int flashsv_encode_end(AVCodecContext *avctx)
275 { 275 {
276 FlashSVContext *s = avctx->priv_data; 276 FlashSVContext *s = avctx->priv_data;
277 277
278 deflateEnd(&(s->zstream)); 278 deflateEnd(&(s->zstream));
279 279