[FFmpeg-cvslog] r19573 - in trunk/libavcodec: mpegvideo_enc.c rv10.c

Andreas Öman andreas
Mon Aug 3 21:18:32 CEST 2009


diego wrote:
> Author: diego
> Date: Mon Aug  3 17:23:53 2009
> New Revision: 19573
> 
> Log:
> Move AVCodec declarations for RV10/20 from mpegvideo_enc.c to rv10.c.
> It is better to keep the declarations in conditionally compiled places.
> 
> Modified:
>    trunk/libavcodec/mpegvideo_enc.c
>    trunk/libavcodec/rv10.c


for $ ./configure --disable-encoders

this fails with:

/home/andoma/ffmpeg/libavcodec/libavcodec.a(rv10.o):(.data+0xd0): 
undefined reference to `MPV_encode_init'
/home/andoma/ffmpeg/libavcodec/libavcodec.a(rv10.o):(.data+0xd4): 
undefined reference to `MPV_encode_picture'
/home/andoma/ffmpeg/libavcodec/libavcodec.a(rv10.o):(.data+0xd8): 
undefined reference to `MPV_encode_end'
/home/andoma/ffmpeg/libavcodec/libavcodec.a(rv10.o):(.data+0x130): 
undefined reference to `MPV_encode_init'
/home/andoma/ffmpeg/libavcodec/libavcodec.a(rv10.o):(.data+0x134): 
undefined reference to `MPV_encode_picture'
/home/andoma/ffmpeg/libavcodec/libavcodec.a(rv10.o):(.data+0x138): 
undefined reference to `MPV_encode_end'


> 
> Modified: trunk/libavcodec/mpegvideo_enc.c
> ==============================================================================
> --- trunk/libavcodec/mpegvideo_enc.c	Mon Aug  3 11:24:39 2009	(r19572)
> +++ trunk/libavcodec/mpegvideo_enc.c	Mon Aug  3 17:23:53 2009	(r19573)
> @@ -3759,30 +3759,6 @@ AVCodec flv_encoder = {
>      .long_name= NULL_IF_CONFIG_SMALL("Flash Video (FLV)"),
>  };
>  
> -AVCodec rv10_encoder = {
> -    "rv10",
> -    CODEC_TYPE_VIDEO,
> -    CODEC_ID_RV10,
> -    sizeof(MpegEncContext),
> -    MPV_encode_init,
> -    MPV_encode_picture,
> -    MPV_encode_end,
> -    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
> -    .long_name= NULL_IF_CONFIG_SMALL("RealVideo 1.0"),
> -};
> -
> -AVCodec rv20_encoder = {
> -    "rv20",
> -    CODEC_TYPE_VIDEO,
> -    CODEC_ID_RV20,
> -    sizeof(MpegEncContext),
> -    MPV_encode_init,
> -    MPV_encode_picture,
> -    MPV_encode_end,
> -    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
> -    .long_name= NULL_IF_CONFIG_SMALL("RealVideo 2.0"),
> -};
> -
>  AVCodec mpeg4_encoder = {
>      "mpeg4",
>      CODEC_TYPE_VIDEO,
> 
> Modified: trunk/libavcodec/rv10.c
> ==============================================================================
> --- trunk/libavcodec/rv10.c	Mon Aug  3 11:24:39 2009	(r19572)
> +++ trunk/libavcodec/rv10.c	Mon Aug  3 17:23:53 2009	(r19573)
> @@ -781,3 +781,26 @@ AVCodec rv20_decoder = {
>      .pix_fmts= ff_pixfmt_list_420,
>  };
>  
> +AVCodec rv10_encoder = {
> +    "rv10",
> +    CODEC_TYPE_VIDEO,
> +    CODEC_ID_RV10,
> +    sizeof(MpegEncContext),
> +    MPV_encode_init,
> +    MPV_encode_picture,
> +    MPV_encode_end,
> +    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
> +    .long_name= NULL_IF_CONFIG_SMALL("RealVideo 1.0"),
> +};
> +
> +AVCodec rv20_encoder = {
> +    "rv20",
> +    CODEC_TYPE_VIDEO,
> +    CODEC_ID_RV20,
> +    sizeof(MpegEncContext),
> +    MPV_encode_init,
> +    MPV_encode_picture,
> +    MPV_encode_end,
> +    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
> +    .long_name= NULL_IF_CONFIG_SMALL("RealVideo 2.0"),
> +};
> _______________________________________________
> ffmpeg-cvslog mailing list
> ffmpeg-cvslog at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-cvslog




More information about the ffmpeg-cvslog mailing list