Mercurial > libavcodec.hg
comparison bmp.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 | abe584ca935c |
children | e094b1b11e1d |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
21 | 21 |
22 #include "avcodec.h" | 22 #include "avcodec.h" |
23 #include "bytestream.h" | 23 #include "bytestream.h" |
24 #include "bmp.h" | 24 #include "bmp.h" |
25 | 25 |
26 static int bmp_decode_init(AVCodecContext *avctx){ | 26 static av_cold int bmp_decode_init(AVCodecContext *avctx){ |
27 BMPContext *s = avctx->priv_data; | 27 BMPContext *s = avctx->priv_data; |
28 | 28 |
29 avcodec_get_frame_defaults((AVFrame*)&s->picture); | 29 avcodec_get_frame_defaults((AVFrame*)&s->picture); |
30 avctx->coded_frame = (AVFrame*)&s->picture; | 30 avctx->coded_frame = (AVFrame*)&s->picture; |
31 | 31 |
229 *data_size = sizeof(AVPicture); | 229 *data_size = sizeof(AVPicture); |
230 | 230 |
231 return buf_size; | 231 return buf_size; |
232 } | 232 } |
233 | 233 |
234 static int bmp_decode_end(AVCodecContext *avctx) | 234 static av_cold int bmp_decode_end(AVCodecContext *avctx) |
235 { | 235 { |
236 BMPContext* c = avctx->priv_data; | 236 BMPContext* c = avctx->priv_data; |
237 | 237 |
238 if (c->picture.data[0]) | 238 if (c->picture.data[0]) |
239 avctx->release_buffer(avctx, &c->picture); | 239 avctx->release_buffer(avctx, &c->picture); |