Mercurial > libavcodec.hg
comparison dxa.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 | 8af6a717f905 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
283 | 283 |
284 /* always report that the buffer was completely consumed */ | 284 /* always report that the buffer was completely consumed */ |
285 return orig_buf_size; | 285 return orig_buf_size; |
286 } | 286 } |
287 | 287 |
288 static int decode_init(AVCodecContext *avctx) | 288 static av_cold int decode_init(AVCodecContext *avctx) |
289 { | 289 { |
290 DxaDecContext * const c = avctx->priv_data; | 290 DxaDecContext * const c = avctx->priv_data; |
291 | 291 |
292 c->avctx = avctx; | 292 c->avctx = avctx; |
293 avctx->pix_fmt = PIX_FMT_PAL8; | 293 avctx->pix_fmt = PIX_FMT_PAL8; |
303 } | 303 } |
304 | 304 |
305 return 0; | 305 return 0; |
306 } | 306 } |
307 | 307 |
308 static int decode_end(AVCodecContext *avctx) | 308 static av_cold int decode_end(AVCodecContext *avctx) |
309 { | 309 { |
310 DxaDecContext * const c = avctx->priv_data; | 310 DxaDecContext * const c = avctx->priv_data; |
311 | 311 |
312 av_freep(&c->decomp_buf); | 312 av_freep(&c->decomp_buf); |
313 if(c->prev.data[0]) | 313 if(c->prev.data[0]) |