comparison kmvc.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 dfdff1ca78a7
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
336 336
337 337
338 /* 338 /*
339 * Init kmvc decoder 339 * Init kmvc decoder
340 */ 340 */
341 static int decode_init(AVCodecContext * avctx) 341 static av_cold int decode_init(AVCodecContext * avctx)
342 { 342 {
343 KmvcContext *const c = avctx->priv_data; 343 KmvcContext *const c = avctx->priv_data;
344 int i; 344 int i;
345 345
346 c->avctx = avctx; 346 c->avctx = avctx;
388 388
389 389
390 /* 390 /*
391 * Uninit kmvc decoder 391 * Uninit kmvc decoder
392 */ 392 */
393 static int decode_end(AVCodecContext * avctx) 393 static av_cold int decode_end(AVCodecContext * avctx)
394 { 394 {
395 KmvcContext *const c = avctx->priv_data; 395 KmvcContext *const c = avctx->priv_data;
396 396
397 av_freep(&c->frm0); 397 av_freep(&c->frm0);
398 av_freep(&c->frm1); 398 av_freep(&c->frm1);