Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
79 * and the encoder context created. | 79 * and the encoder context created. |
80 * | 80 * |
81 * @param avctx AVCodecContext pointer to context | 81 * @param avctx AVCodecContext pointer to context |
82 * @return Returns 0 on success, -1 on failure | 82 * @return Returns 0 on success, -1 on failure |
83 */ | 83 */ |
84 int ff_xvid_encode_init(AVCodecContext *avctx) { | 84 av_cold int ff_xvid_encode_init(AVCodecContext *avctx) { |
85 int xerr, i; | 85 int xerr, i; |
86 int xvid_flags = avctx->flags; | 86 int xvid_flags = avctx->flags; |
87 xvid_context_t *x = avctx->priv_data; | 87 xvid_context_t *x = avctx->priv_data; |
88 uint16_t *intra, *inter; | 88 uint16_t *intra, *inter; |
89 int fd; | 89 int fd; |
459 * All buffers are freed, and the XviD encoder context is destroyed. | 459 * All buffers are freed, and the XviD encoder context is destroyed. |
460 * | 460 * |
461 * @param avctx AVCodecContext pointer to context | 461 * @param avctx AVCodecContext pointer to context |
462 * @return Returns 0, success guaranteed | 462 * @return Returns 0, success guaranteed |
463 */ | 463 */ |
464 int ff_xvid_encode_close(AVCodecContext *avctx) { | 464 av_cold int ff_xvid_encode_close(AVCodecContext *avctx) { |
465 xvid_context_t *x = avctx->priv_data; | 465 xvid_context_t *x = avctx->priv_data; |
466 | 466 |
467 xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL); | 467 xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL); |
468 | 468 |
469 if( avctx->extradata != NULL ) | 469 if( avctx->extradata != NULL ) |