comparison pngdec.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 49dcfab1bda3
children 6eeb19edcee3
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
595 fail: 595 fail:
596 ret = -1; 596 ret = -1;
597 goto the_end; 597 goto the_end;
598 } 598 }
599 599
600 static int png_dec_init(AVCodecContext *avctx){ 600 static av_cold int png_dec_init(AVCodecContext *avctx){
601 PNGDecContext *s = avctx->priv_data; 601 PNGDecContext *s = avctx->priv_data;
602 602
603 avcodec_get_frame_defaults((AVFrame*)&s->picture); 603 avcodec_get_frame_defaults((AVFrame*)&s->picture);
604 avctx->coded_frame= (AVFrame*)&s->picture; 604 avctx->coded_frame= (AVFrame*)&s->picture;
605 dsputil_init(&s->dsp, avctx); 605 dsputil_init(&s->dsp, avctx);