Mercurial > libavcodec.hg
comparison libx264.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 | de5b524db473 |
children | 5df0c730234d |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
117 x4->out_pic.quality = (pic_out.i_qpplus1 - 1) * FF_QP2LAMBDA; | 117 x4->out_pic.quality = (pic_out.i_qpplus1 - 1) * FF_QP2LAMBDA; |
118 | 118 |
119 return bufsize; | 119 return bufsize; |
120 } | 120 } |
121 | 121 |
122 static int | 122 static av_cold int |
123 X264_close(AVCodecContext *avctx) | 123 X264_close(AVCodecContext *avctx) |
124 { | 124 { |
125 X264Context *x4 = avctx->priv_data; | 125 X264Context *x4 = avctx->priv_data; |
126 | 126 |
127 if(x4->enc) | 127 if(x4->enc) |
128 x264_encoder_close(x4->enc); | 128 x264_encoder_close(x4->enc); |
129 | 129 |
130 return 0; | 130 return 0; |
131 } | 131 } |
132 | 132 |
133 static int | 133 static av_cold int |
134 X264_init(AVCodecContext *avctx) | 134 X264_init(AVCodecContext *avctx) |
135 { | 135 { |
136 X264Context *x4 = avctx->priv_data; | 136 X264Context *x4 = avctx->priv_data; |
137 | 137 |
138 x264_param_default(&x4->params); | 138 x264_param_default(&x4->params); |