comparison flashsv.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 0ea69b824ce7
children 01647ac078a7
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
77 sptr += w*3; 77 sptr += w*3;
78 } 78 }
79 } 79 }
80 80
81 81
82 static int flashsv_decode_init(AVCodecContext *avctx) 82 static av_cold int flashsv_decode_init(AVCodecContext *avctx)
83 { 83 {
84 FlashSVContext *s = avctx->priv_data; 84 FlashSVContext *s = avctx->priv_data;
85 int zret; // Zlib return code 85 int zret; // Zlib return code
86 86
87 s->avctx = avctx; 87 s->avctx = avctx;
226 /* report that the buffer was completely consumed */ 226 /* report that the buffer was completely consumed */
227 return buf_size; 227 return buf_size;
228 } 228 }
229 229
230 230
231 static int flashsv_decode_end(AVCodecContext *avctx) 231 static av_cold int flashsv_decode_end(AVCodecContext *avctx)
232 { 232 {
233 FlashSVContext *s = avctx->priv_data; 233 FlashSVContext *s = avctx->priv_data;
234 inflateEnd(&(s->zstream)); 234 inflateEnd(&(s->zstream));
235 /* release the frame if needed */ 235 /* release the frame if needed */
236 if (s->frame.data[0]) 236 if (s->frame.data[0])