Mercurial > libavcodec.hg
comparison sunrast.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 | 5b6f78cd3d50 |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
30 | 30 |
31 typedef struct SUNRASTContext { | 31 typedef struct SUNRASTContext { |
32 AVFrame picture; | 32 AVFrame picture; |
33 } SUNRASTContext; | 33 } SUNRASTContext; |
34 | 34 |
35 static int sunrast_init(AVCodecContext *avctx) { | 35 static av_cold int sunrast_init(AVCodecContext *avctx) { |
36 SUNRASTContext *s = avctx->priv_data; | 36 SUNRASTContext *s = avctx->priv_data; |
37 | 37 |
38 avcodec_get_frame_defaults(&s->picture); | 38 avcodec_get_frame_defaults(&s->picture); |
39 avctx->coded_frame= &s->picture; | 39 avctx->coded_frame= &s->picture; |
40 | 40 |
170 *data_size = sizeof(AVFrame); | 170 *data_size = sizeof(AVFrame); |
171 | 171 |
172 return buf - bufstart; | 172 return buf - bufstart; |
173 } | 173 } |
174 | 174 |
175 static int sunrast_end(AVCodecContext *avctx) { | 175 static av_cold int sunrast_end(AVCodecContext *avctx) { |
176 SUNRASTContext *s = avctx->priv_data; | 176 SUNRASTContext *s = avctx->priv_data; |
177 | 177 |
178 if(s->picture.data[0]) | 178 if(s->picture.data[0]) |
179 avctx->release_buffer(avctx, &s->picture); | 179 avctx->release_buffer(avctx, &s->picture); |
180 | 180 |