comparison smacker.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 2f44646383c8
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
504 /* 504 /*
505 * 505 *
506 * Init smacker decoder 506 * Init smacker decoder
507 * 507 *
508 */ 508 */
509 static int decode_init(AVCodecContext *avctx) 509 static av_cold int decode_init(AVCodecContext *avctx)
510 { 510 {
511 SmackVContext * const c = avctx->priv_data; 511 SmackVContext * const c = avctx->priv_data;
512 512
513 c->avctx = avctx; 513 c->avctx = avctx;
514 514
538 /* 538 /*
539 * 539 *
540 * Uninit smacker decoder 540 * Uninit smacker decoder
541 * 541 *
542 */ 542 */
543 static int decode_end(AVCodecContext *avctx) 543 static av_cold int decode_end(AVCodecContext *avctx)
544 { 544 {
545 SmackVContext * const smk = avctx->priv_data; 545 SmackVContext * const smk = avctx->priv_data;
546 546
547 av_freep(&smk->mmap_tbl); 547 av_freep(&smk->mmap_tbl);
548 av_freep(&smk->mclr_tbl); 548 av_freep(&smk->mclr_tbl);
554 554
555 return 0; 555 return 0;
556 } 556 }
557 557
558 558
559 static int smka_decode_init(AVCodecContext *avctx) 559 static av_cold int smka_decode_init(AVCodecContext *avctx)
560 { 560 {
561 return 0; 561 return 0;
562 } 562 }
563 563
564 /** 564 /**