Mercurial > libavcodec.hg
comparison pcx.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 | bacdb7089756 |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
28 | 28 |
29 typedef struct PCXContext { | 29 typedef struct PCXContext { |
30 AVFrame picture; | 30 AVFrame picture; |
31 } PCXContext; | 31 } PCXContext; |
32 | 32 |
33 static int pcx_init(AVCodecContext *avctx) { | 33 static av_cold int pcx_init(AVCodecContext *avctx) { |
34 PCXContext *s = avctx->priv_data; | 34 PCXContext *s = avctx->priv_data; |
35 | 35 |
36 avcodec_get_frame_defaults(&s->picture); | 36 avcodec_get_frame_defaults(&s->picture); |
37 avctx->coded_frame= &s->picture; | 37 avctx->coded_frame= &s->picture; |
38 | 38 |
222 *data_size = sizeof(AVFrame); | 222 *data_size = sizeof(AVFrame); |
223 | 223 |
224 return buf - bufstart; | 224 return buf - bufstart; |
225 } | 225 } |
226 | 226 |
227 static int pcx_end(AVCodecContext *avctx) { | 227 static av_cold int pcx_end(AVCodecContext *avctx) { |
228 PCXContext *s = avctx->priv_data; | 228 PCXContext *s = avctx->priv_data; |
229 | 229 |
230 if(s->picture.data[0]) | 230 if(s->picture.data[0]) |
231 avctx->release_buffer(avctx, &s->picture); | 231 avctx->release_buffer(avctx, &s->picture); |
232 | 232 |