comparison 8bps.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 ce3cc7f7fb53
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
146 /* 146 /*
147 * 147 *
148 * Init 8BPS decoder 148 * Init 8BPS decoder
149 * 149 *
150 */ 150 */
151 static int decode_init(AVCodecContext *avctx) 151 static av_cold int decode_init(AVCodecContext *avctx)
152 { 152 {
153 EightBpsContext * const c = avctx->priv_data; 153 EightBpsContext * const c = avctx->priv_data;
154 154
155 c->avctx = avctx; 155 c->avctx = avctx;
156 156
206 /* 206 /*
207 * 207 *
208 * Uninit 8BPS decoder 208 * Uninit 8BPS decoder
209 * 209 *
210 */ 210 */
211 static int decode_end(AVCodecContext *avctx) 211 static av_cold int decode_end(AVCodecContext *avctx)
212 { 212 {
213 EightBpsContext * const c = avctx->priv_data; 213 EightBpsContext * const c = avctx->priv_data;
214 214
215 if (c->pic.data[0]) 215 if (c->pic.data[0])
216 avctx->release_buffer(avctx, &c->pic); 216 avctx->release_buffer(avctx, &c->pic);