comparison zmbvenc.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 2b72f9bc4f06
children f282270c589f
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
229 229
230 230
231 /** 231 /**
232 * Init zmbv encoder 232 * Init zmbv encoder
233 */ 233 */
234 static int encode_init(AVCodecContext *avctx) 234 static av_cold int encode_init(AVCodecContext *avctx)
235 { 235 {
236 ZmbvEncContext * const c = avctx->priv_data; 236 ZmbvEncContext * const c = avctx->priv_data;
237 int zret; // Zlib return code 237 int zret; // Zlib return code
238 int lvl = 9; 238 int lvl = 9;
239 239
295 295
296 296
297 /** 297 /**
298 * Uninit zmbv encoder 298 * Uninit zmbv encoder
299 */ 299 */
300 static int encode_end(AVCodecContext *avctx) 300 static av_cold int encode_end(AVCodecContext *avctx)
301 { 301 {
302 ZmbvEncContext * const c = avctx->priv_data; 302 ZmbvEncContext * const c = avctx->priv_data;
303 303
304 av_freep(&c->comp_buf); 304 av_freep(&c->comp_buf);
305 av_freep(&c->work_buf); 305 av_freep(&c->work_buf);