comparison roqvideodec.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 814c8bd77d91
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
151 break; 151 break;
152 } 152 }
153 } 153 }
154 154
155 155
156 static int roq_decode_init(AVCodecContext *avctx) 156 static av_cold int roq_decode_init(AVCodecContext *avctx)
157 { 157 {
158 RoqContext *s = avctx->priv_data; 158 RoqContext *s = avctx->priv_data;
159 159
160 s->avctx = avctx; 160 s->avctx = avctx;
161 s->width = avctx->width; 161 s->width = avctx->width;
194 FFSWAP(AVFrame *, s->current_frame, s->last_frame); 194 FFSWAP(AVFrame *, s->current_frame, s->last_frame);
195 195
196 return buf_size; 196 return buf_size;
197 } 197 }
198 198
199 static int roq_decode_end(AVCodecContext *avctx) 199 static av_cold int roq_decode_end(AVCodecContext *avctx)
200 { 200 {
201 RoqContext *s = avctx->priv_data; 201 RoqContext *s = avctx->priv_data;
202 202
203 /* release the last frame */ 203 /* release the last frame */
204 if (s->last_frame->data[0]) 204 if (s->last_frame->data[0])