Mercurial > libavcodec.hg
comparison vb.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 | dfdff1ca78a7 |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
232 | 232 |
233 /* always report that the buffer was completely consumed */ | 233 /* always report that the buffer was completely consumed */ |
234 return buf_size; | 234 return buf_size; |
235 } | 235 } |
236 | 236 |
237 static int decode_init(AVCodecContext *avctx) | 237 static av_cold int decode_init(AVCodecContext *avctx) |
238 { | 238 { |
239 VBDecContext * const c = avctx->priv_data; | 239 VBDecContext * const c = avctx->priv_data; |
240 | 240 |
241 c->avctx = avctx; | 241 c->avctx = avctx; |
242 avctx->pix_fmt = PIX_FMT_PAL8; | 242 avctx->pix_fmt = PIX_FMT_PAL8; |
255 c->prev_frame = av_malloc( avctx->width * avctx->height); | 255 c->prev_frame = av_malloc( avctx->width * avctx->height); |
256 | 256 |
257 return 0; | 257 return 0; |
258 } | 258 } |
259 | 259 |
260 static int decode_end(AVCodecContext *avctx) | 260 static av_cold int decode_end(AVCodecContext *avctx) |
261 { | 261 { |
262 VBDecContext *c = avctx->priv_data; | 262 VBDecContext *c = avctx->priv_data; |
263 | 263 |
264 av_freep(&c->frame); | 264 av_freep(&c->frame); |
265 av_freep(&c->prev_frame); | 265 av_freep(&c->prev_frame); |