Mercurial > libavcodec.hg
changeset 10012:fef7b43f0d22 libavcodec
Move AVCodec declarations for RV10/20 from mpegvideo_enc.c to rv10.c.
It is better to keep the declarations in conditionally compiled places.
author | diego |
---|---|
date | Mon, 03 Aug 2009 15:23:53 +0000 |
parents | c1cfa4679371 |
children | 454cb6aa43a3 |
files | mpegvideo_enc.c rv10.c |
diffstat | 2 files changed, 23 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo_enc.c Mon Aug 03 08:37:02 2009 +0000 +++ b/mpegvideo_enc.c Mon Aug 03 15:23:53 2009 +0000 @@ -3759,30 +3759,6 @@ .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,
--- a/rv10.c Mon Aug 03 08:37:02 2009 +0000 +++ b/rv10.c Mon Aug 03 15:23:53 2009 +0000 @@ -781,3 +781,26 @@ .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"), +};