Mercurial > libavcodec.hg
comparison cyuv.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 | c32be43b52b2 |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
41 AVCodecContext *avctx; | 41 AVCodecContext *avctx; |
42 int width, height; | 42 int width, height; |
43 AVFrame frame; | 43 AVFrame frame; |
44 } CyuvDecodeContext; | 44 } CyuvDecodeContext; |
45 | 45 |
46 static int cyuv_decode_init(AVCodecContext *avctx) | 46 static av_cold int cyuv_decode_init(AVCodecContext *avctx) |
47 { | 47 { |
48 CyuvDecodeContext *s = avctx->priv_data; | 48 CyuvDecodeContext *s = avctx->priv_data; |
49 | 49 |
50 s->avctx = avctx; | 50 s->avctx = avctx; |
51 s->width = avctx->width; | 51 s->width = avctx->width; |
161 *(AVFrame*)data= s->frame; | 161 *(AVFrame*)data= s->frame; |
162 | 162 |
163 return buf_size; | 163 return buf_size; |
164 } | 164 } |
165 | 165 |
166 static int cyuv_decode_end(AVCodecContext *avctx) | 166 static av_cold int cyuv_decode_end(AVCodecContext *avctx) |
167 { | 167 { |
168 /* CyuvDecodeContext *s = avctx->priv_data;*/ | 168 /* CyuvDecodeContext *s = avctx->priv_data;*/ |
169 | 169 |
170 return 0; | 170 return 0; |
171 } | 171 } |