Mercurial > libavcodec.hg
comparison targa.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 | 56d2853cd7c3 |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
218 *data_size = sizeof(AVPicture); | 218 *data_size = sizeof(AVPicture); |
219 | 219 |
220 return buf_size; | 220 return buf_size; |
221 } | 221 } |
222 | 222 |
223 static int targa_init(AVCodecContext *avctx){ | 223 static av_cold int targa_init(AVCodecContext *avctx){ |
224 TargaContext *s = avctx->priv_data; | 224 TargaContext *s = avctx->priv_data; |
225 | 225 |
226 avcodec_get_frame_defaults((AVFrame*)&s->picture); | 226 avcodec_get_frame_defaults((AVFrame*)&s->picture); |
227 avctx->coded_frame= (AVFrame*)&s->picture; | 227 avctx->coded_frame= (AVFrame*)&s->picture; |
228 s->picture.data[0] = NULL; | 228 s->picture.data[0] = NULL; |
229 | 229 |
230 return 0; | 230 return 0; |
231 } | 231 } |
232 | 232 |
233 static int targa_end(AVCodecContext *avctx){ | 233 static av_cold int targa_end(AVCodecContext *avctx){ |
234 TargaContext *s = avctx->priv_data; | 234 TargaContext *s = avctx->priv_data; |
235 | 235 |
236 if(s->picture.data[0]) | 236 if(s->picture.data[0]) |
237 avctx->release_buffer(avctx, &s->picture); | 237 avctx->release_buffer(avctx, &s->picture); |
238 | 238 |