Mercurial > libavcodec.hg
comparison qpeg.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 | c32be43b52b2 |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
282 *(AVFrame*)data = a->pic; | 282 *(AVFrame*)data = a->pic; |
283 | 283 |
284 return buf_size; | 284 return buf_size; |
285 } | 285 } |
286 | 286 |
287 static int decode_init(AVCodecContext *avctx){ | 287 static av_cold int decode_init(AVCodecContext *avctx){ |
288 QpegContext * const a = avctx->priv_data; | 288 QpegContext * const a = avctx->priv_data; |
289 | 289 |
290 a->avctx = avctx; | 290 a->avctx = avctx; |
291 avctx->pix_fmt= PIX_FMT_PAL8; | 291 avctx->pix_fmt= PIX_FMT_PAL8; |
292 a->pic.data[0] = NULL; | 292 a->pic.data[0] = NULL; |
293 a->refdata = av_malloc(avctx->width * avctx->height); | 293 a->refdata = av_malloc(avctx->width * avctx->height); |
294 | 294 |
295 return 0; | 295 return 0; |
296 } | 296 } |
297 | 297 |
298 static int decode_end(AVCodecContext *avctx){ | 298 static av_cold int decode_end(AVCodecContext *avctx){ |
299 QpegContext * const a = avctx->priv_data; | 299 QpegContext * const a = avctx->priv_data; |
300 AVFrame * const p= (AVFrame*)&a->pic; | 300 AVFrame * const p= (AVFrame*)&a->pic; |
301 | 301 |
302 if(p->data[0]) | 302 if(p->data[0]) |
303 avctx->release_buffer(avctx, p); | 303 avctx->release_buffer(avctx, p); |