Mercurial > libavcodec.hg
comparison vcr1.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 |
---|---|
135 | 135 |
136 return size*4; | 136 return size*4; |
137 } | 137 } |
138 #endif | 138 #endif |
139 | 139 |
140 static void common_init(AVCodecContext *avctx){ | 140 static av_cold void common_init(AVCodecContext *avctx){ |
141 VCR1Context * const a = avctx->priv_data; | 141 VCR1Context * const a = avctx->priv_data; |
142 | 142 |
143 avctx->coded_frame= (AVFrame*)&a->picture; | 143 avctx->coded_frame= (AVFrame*)&a->picture; |
144 a->avctx= avctx; | 144 a->avctx= avctx; |
145 } | 145 } |
146 | 146 |
147 static int decode_init(AVCodecContext *avctx){ | 147 static av_cold int decode_init(AVCodecContext *avctx){ |
148 | 148 |
149 common_init(avctx); | 149 common_init(avctx); |
150 | 150 |
151 avctx->pix_fmt= PIX_FMT_YUV410P; | 151 avctx->pix_fmt= PIX_FMT_YUV410P; |
152 | 152 |
153 return 0; | 153 return 0; |
154 } | 154 } |
155 | 155 |
156 #if 0 | 156 #if 0 |
157 static int encode_init(AVCodecContext *avctx){ | 157 static av_cold int encode_init(AVCodecContext *avctx){ |
158 | 158 |
159 common_init(avctx); | 159 common_init(avctx); |
160 | 160 |
161 return 0; | 161 return 0; |
162 } | 162 } |