Mercurial > libavcodec.hg
comparison vmnc.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 | 2084ab75b08f |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
454 /* | 454 /* |
455 * | 455 * |
456 * Init VMnc decoder | 456 * Init VMnc decoder |
457 * | 457 * |
458 */ | 458 */ |
459 static int decode_init(AVCodecContext *avctx) | 459 static av_cold int decode_init(AVCodecContext *avctx) |
460 { | 460 { |
461 VmncContext * const c = avctx->priv_data; | 461 VmncContext * const c = avctx->priv_data; |
462 | 462 |
463 c->avctx = avctx; | 463 c->avctx = avctx; |
464 | 464 |
494 /* | 494 /* |
495 * | 495 * |
496 * Uninit VMnc decoder | 496 * Uninit VMnc decoder |
497 * | 497 * |
498 */ | 498 */ |
499 static int decode_end(AVCodecContext *avctx) | 499 static av_cold int decode_end(AVCodecContext *avctx) |
500 { | 500 { |
501 VmncContext * const c = avctx->priv_data; | 501 VmncContext * const c = avctx->priv_data; |
502 | 502 |
503 if (c->pic.data[0]) | 503 if (c->pic.data[0]) |
504 avctx->release_buffer(avctx, &c->pic); | 504 avctx->release_buffer(avctx, &c->pic); |