Revision 30f76824 libavcodec/libxvidff.c

View differences:

libavcodec/libxvidff.c
82 82
 * @param avctx AVCodecContext pointer to context
83 83
 * @return Returns 0 on success, -1 on failure
84 84
 */
85
av_cold int ff_xvid_encode_init(AVCodecContext *avctx)  {
85
static av_cold int xvid_encode_init(AVCodecContext *avctx)  {
86 86
    int xerr, i;
87 87
    int xvid_flags = avctx->flags;
88 88
    struct xvid_context *x = avctx->priv_data;
......
367 367
 * @param data Pointer to AVFrame of unencoded frame
368 368
 * @return Returns 0 on success, -1 on failure
369 369
 */
370
int ff_xvid_encode_frame(AVCodecContext *avctx,
370
static int xvid_encode_frame(AVCodecContext *avctx,
371 371
                         unsigned char *frame, int buf_size, void *data) {
372 372
    int xerr, i;
373 373
    char *tmp;
......
475 475
 * @param avctx AVCodecContext pointer to context
476 476
 * @return Returns 0, success guaranteed
477 477
 */
478
av_cold int ff_xvid_encode_close(AVCodecContext *avctx) {
478
static av_cold int xvid_encode_close(AVCodecContext *avctx) {
479 479
    struct xvid_context *x = avctx->priv_data;
480 480

  
481 481
    xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL);
......
772 772
    CODEC_TYPE_VIDEO,
773 773
    CODEC_ID_XVID,
774 774
    sizeof(struct xvid_context),
775
    ff_xvid_encode_init,
776
    ff_xvid_encode_frame,
777
    ff_xvid_encode_close,
775
    xvid_encode_init,
776
    xvid_encode_frame,
777
    xvid_encode_close,
778 778
    .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
779 779
    .long_name= NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"),
780 780
};

Also available in: Unified diff