comparison msrle.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 dfdff1ca78a7
children 5df0c730234d
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
234 if (stream_ptr < s->size) 234 if (stream_ptr < s->size)
235 av_log(s->avctx, AV_LOG_ERROR, " MS RLE: ended frame decode with bytes left over (%d < %d)\n", 235 av_log(s->avctx, AV_LOG_ERROR, " MS RLE: ended frame decode with bytes left over (%d < %d)\n",
236 stream_ptr, s->size); 236 stream_ptr, s->size);
237 } 237 }
238 238
239 static int msrle_decode_init(AVCodecContext *avctx) 239 static av_cold int msrle_decode_init(AVCodecContext *avctx)
240 { 240 {
241 MsrleContext *s = avctx->priv_data; 241 MsrleContext *s = avctx->priv_data;
242 242
243 s->avctx = avctx; 243 s->avctx = avctx;
244 244
281 281
282 /* report that the buffer was completely consumed */ 282 /* report that the buffer was completely consumed */
283 return buf_size; 283 return buf_size;
284 } 284 }
285 285
286 static int msrle_decode_end(AVCodecContext *avctx) 286 static av_cold int msrle_decode_end(AVCodecContext *avctx)
287 { 287 {
288 MsrleContext *s = avctx->priv_data; 288 MsrleContext *s = avctx->priv_data;
289 289
290 /* release the last frame */ 290 /* release the last frame */
291 if (s->frame.data[0]) 291 if (s->frame.data[0])