Mercurial > libavcodec.hg
comparison smc.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 | 814c8bd77d91 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
424 break; | 424 break; |
425 } | 425 } |
426 } | 426 } |
427 } | 427 } |
428 | 428 |
429 static int smc_decode_init(AVCodecContext *avctx) | 429 static av_cold int smc_decode_init(AVCodecContext *avctx) |
430 { | 430 { |
431 SmcContext *s = avctx->priv_data; | 431 SmcContext *s = avctx->priv_data; |
432 | 432 |
433 s->avctx = avctx; | 433 s->avctx = avctx; |
434 avctx->pix_fmt = PIX_FMT_PAL8; | 434 avctx->pix_fmt = PIX_FMT_PAL8; |
462 | 462 |
463 /* always report that the buffer was completely consumed */ | 463 /* always report that the buffer was completely consumed */ |
464 return buf_size; | 464 return buf_size; |
465 } | 465 } |
466 | 466 |
467 static int smc_decode_end(AVCodecContext *avctx) | 467 static av_cold int smc_decode_end(AVCodecContext *avctx) |
468 { | 468 { |
469 SmcContext *s = avctx->priv_data; | 469 SmcContext *s = avctx->priv_data; |
470 | 470 |
471 if (s->frame.data[0]) | 471 if (s->frame.data[0]) |
472 avctx->release_buffer(avctx, &s->frame); | 472 avctx->release_buffer(avctx, &s->frame); |