comparison tiertexseqv.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 2134a0fc46f3
children 6eeb19edcee3
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
171 } 171 }
172 } 172 }
173 } 173 }
174 } 174 }
175 175
176 static int seqvideo_decode_init(AVCodecContext *avctx) 176 static av_cold int seqvideo_decode_init(AVCodecContext *avctx)
177 { 177 {
178 SeqVideoContext *seq = avctx->priv_data; 178 SeqVideoContext *seq = avctx->priv_data;
179 179
180 seq->avctx = avctx; 180 seq->avctx = avctx;
181 avctx->pix_fmt = PIX_FMT_PAL8; 181 avctx->pix_fmt = PIX_FMT_PAL8;
183 seq->frame.data[0] = NULL; 183 seq->frame.data[0] = NULL;
184 184
185 return 0; 185 return 0;
186 } 186 }
187 187
188 static int seqvideo_decode_frame(AVCodecContext *avctx, 188 static av_cold int seqvideo_decode_frame(AVCodecContext *avctx,
189 void *data, int *data_size, 189 void *data, int *data_size,
190 const uint8_t *buf, int buf_size) 190 const uint8_t *buf, int buf_size)
191 { 191 {
192 192
193 SeqVideoContext *seq = avctx->priv_data; 193 SeqVideoContext *seq = avctx->priv_data;