Mercurial > libavcodec.hg
comparison pngenc.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 | a0a1db4738dd |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
420 fail: | 420 fail: |
421 ret = -1; | 421 ret = -1; |
422 goto the_end; | 422 goto the_end; |
423 } | 423 } |
424 | 424 |
425 static int png_enc_init(AVCodecContext *avctx){ | 425 static av_cold int png_enc_init(AVCodecContext *avctx){ |
426 PNGEncContext *s = avctx->priv_data; | 426 PNGEncContext *s = avctx->priv_data; |
427 | 427 |
428 avcodec_get_frame_defaults((AVFrame*)&s->picture); | 428 avcodec_get_frame_defaults((AVFrame*)&s->picture); |
429 avctx->coded_frame= (AVFrame*)&s->picture; | 429 avctx->coded_frame= (AVFrame*)&s->picture; |
430 dsputil_init(&s->dsp, avctx); | 430 dsputil_init(&s->dsp, avctx); |