Mercurial > libavcodec.hg
comparison sgienc.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 | 2b825cb391f2 |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
29 | 29 |
30 typedef struct SgiContext { | 30 typedef struct SgiContext { |
31 AVFrame picture; | 31 AVFrame picture; |
32 } SgiContext; | 32 } SgiContext; |
33 | 33 |
34 static int encode_init(AVCodecContext *avctx){ | 34 static av_cold int encode_init(AVCodecContext *avctx){ |
35 SgiContext *s = avctx->priv_data; | 35 SgiContext *s = avctx->priv_data; |
36 | 36 |
37 avcodec_get_frame_defaults(&s->picture); | 37 avcodec_get_frame_defaults(&s->picture); |
38 avctx->coded_frame = &s->picture; | 38 avctx->coded_frame = &s->picture; |
39 | 39 |