comparison dsicinav.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 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
84 0, 0, 0, 0, 0, 0, 0, 0, 84 0, 0, 0, 0, 0, 0, 0, 0,
85 0, 0, 0, 0, 0, 0, 0, 0 85 0, 0, 0, 0, 0, 0, 0, 0
86 }; 86 };
87 87
88 88
89 static int cinvideo_decode_init(AVCodecContext *avctx) 89 static av_cold int cinvideo_decode_init(AVCodecContext *avctx)
90 { 90 {
91 CinVideoContext *cin = avctx->priv_data; 91 CinVideoContext *cin = avctx->priv_data;
92 unsigned int i; 92 unsigned int i;
93 93
94 cin->avctx = avctx; 94 cin->avctx = avctx;
282 *(AVFrame *)data = cin->frame; 282 *(AVFrame *)data = cin->frame;
283 283
284 return buf_size; 284 return buf_size;
285 } 285 }
286 286
287 static int cinvideo_decode_end(AVCodecContext *avctx) 287 static av_cold int cinvideo_decode_end(AVCodecContext *avctx)
288 { 288 {
289 CinVideoContext *cin = avctx->priv_data; 289 CinVideoContext *cin = avctx->priv_data;
290 int i; 290 int i;
291 291
292 if (cin->frame.data[0]) 292 if (cin->frame.data[0])
296 av_free(cin->bitmap_table[i]); 296 av_free(cin->bitmap_table[i]);
297 297
298 return 0; 298 return 0;
299 } 299 }
300 300
301 static int cinaudio_decode_init(AVCodecContext *avctx) 301 static av_cold int cinaudio_decode_init(AVCodecContext *avctx)
302 { 302 {
303 CinAudioContext *cin = avctx->priv_data; 303 CinAudioContext *cin = avctx->priv_data;
304 304
305 cin->avctx = avctx; 305 cin->avctx = avctx;
306 cin->initial_decode_frame = 1; 306 cin->initial_decode_frame = 1;