comparison mmvideo.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 a4104482ceef
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
45 typedef struct MmContext { 45 typedef struct MmContext {
46 AVCodecContext *avctx; 46 AVCodecContext *avctx;
47 AVFrame frame; 47 AVFrame frame;
48 } MmContext; 48 } MmContext;
49 49
50 static int mm_decode_init(AVCodecContext *avctx) 50 static av_cold int mm_decode_init(AVCodecContext *avctx)
51 { 51 {
52 MmContext *s = avctx->priv_data; 52 MmContext *s = avctx->priv_data;
53 53
54 s->avctx = avctx; 54 s->avctx = avctx;
55 55
180 *(AVFrame*)data = s->frame; 180 *(AVFrame*)data = s->frame;
181 181
182 return buf_size; 182 return buf_size;
183 } 183 }
184 184
185 static int mm_decode_end(AVCodecContext *avctx) 185 static av_cold int mm_decode_end(AVCodecContext *avctx)
186 { 186 {
187 MmContext *s = avctx->priv_data; 187 MmContext *s = avctx->priv_data;
188 188
189 if(s->frame.data[0]) 189 if(s->frame.data[0])
190 avctx->release_buffer(avctx, &s->frame); 190 avctx->release_buffer(avctx, &s->frame);