Mercurial > libavcodec.hg
diff libxvidff.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 | b98dde3f56a0 |
children | c22932db0ebb |
line wrap: on
line diff
--- a/libxvidff.c Thu Mar 20 19:36:20 2008 +0000 +++ b/libxvidff.c Fri Mar 21 03:11:20 2008 +0000 @@ -81,7 +81,7 @@ * @param avctx AVCodecContext pointer to context * @return Returns 0 on success, -1 on failure */ -int ff_xvid_encode_init(AVCodecContext *avctx) { +av_cold int ff_xvid_encode_init(AVCodecContext *avctx) { int xerr, i; int xvid_flags = avctx->flags; xvid_context_t *x = avctx->priv_data; @@ -461,7 +461,7 @@ * @param avctx AVCodecContext pointer to context * @return Returns 0, success guaranteed */ -int ff_xvid_encode_close(AVCodecContext *avctx) { +av_cold int ff_xvid_encode_close(AVCodecContext *avctx) { xvid_context_t *x = avctx->priv_data; xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL);