Mercurial > libavcodec.hg
comparison lcldec.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 | 551232d0fa74 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
512 /* | 512 /* |
513 * | 513 * |
514 * Init lcl decoder | 514 * Init lcl decoder |
515 * | 515 * |
516 */ | 516 */ |
517 static int decode_init(AVCodecContext *avctx) | 517 static av_cold int decode_init(AVCodecContext *avctx) |
518 { | 518 { |
519 LclDecContext * const c = avctx->priv_data; | 519 LclDecContext * const c = avctx->priv_data; |
520 unsigned int basesize = avctx->width * avctx->height; | 520 unsigned int basesize = avctx->width * avctx->height; |
521 unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3); | 521 unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3); |
522 unsigned int max_decomp_size; | 522 unsigned int max_decomp_size; |
671 /* | 671 /* |
672 * | 672 * |
673 * Uninit lcl decoder | 673 * Uninit lcl decoder |
674 * | 674 * |
675 */ | 675 */ |
676 static int decode_end(AVCodecContext *avctx) | 676 static av_cold int decode_end(AVCodecContext *avctx) |
677 { | 677 { |
678 LclDecContext * const c = avctx->priv_data; | 678 LclDecContext * const c = avctx->priv_data; |
679 | 679 |
680 if (c->pic.data[0]) | 680 if (c->pic.data[0]) |
681 avctx->release_buffer(avctx, &c->pic); | 681 avctx->release_buffer(avctx, &c->pic); |