aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-08-15 13:12:23 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-08-15 13:12:23 +0000
commit58f26ba9162f492387c2f5b34856df74644a82f8 (patch)
treef38d0fdcd2937984332e51e86631d588480ea88f
parent935442b522dc198da6d73b58fc1236ef97278ca9 (diff)
downloadffmpeg-58f26ba9162f492387c2f5b34856df74644a82f8.tar.gz
changed opendivx to mpeg4
Originally committed as revision 102 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libav/avienc.c6
-rw-r--r--libavcodec/apiexample.c8
-rw-r--r--libavcodec/mpegvideo.c8
-rw-r--r--libavcodec/mpegvideo.h3
-rw-r--r--libavcodec/utils.c4
5 files changed, 15 insertions, 14 deletions
diff --git a/libav/avienc.c b/libav/avienc.c
index ffd581bc8b..52ce3612af 100644
--- a/libav/avienc.c
+++ b/libav/avienc.c
@@ -58,9 +58,9 @@ CodecTag codec_bmp_tags[] = {
{ CODEC_ID_H263, MKTAG('U', '2', '6', '3') },
{ CODEC_ID_H263I, MKTAG('I', '2', '6', '3') }, /* intel h263 */
{ CODEC_ID_MJPEG, MKTAG('M', 'J', 'P', 'G') },
- { CODEC_ID_OPENDIVX, MKTAG('D', 'I', 'V', 'X') },
- { CODEC_ID_OPENDIVX, MKTAG('d', 'i', 'v', 'x') },
- { CODEC_ID_OPENDIVX, MKTAG(0x04, 0, 0, 0) }, /* some broken avi use this */
+ { CODEC_ID_MPEG4, MKTAG('D', 'I', 'V', 'X') },
+ { CODEC_ID_MPEG4, MKTAG('d', 'i', 'v', 'x') },
+ { CODEC_ID_MPEG4, MKTAG(0x04, 0, 0, 0) }, /* some broken avi use this */
{ CODEC_ID_MSMPEG4, MKTAG('D', 'I', 'V', '3') }, /* default signature when using MSMPEG4 */
{ CODEC_ID_MSMPEG4, MKTAG('M', 'P', '4', '3') },
{ 0, 0 },
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c
index e7ae6e80be..cab7d79b69 100644
--- a/libavcodec/apiexample.c
+++ b/libavcodec/apiexample.c
@@ -292,7 +292,7 @@ void video_decode_example(const char *outfilename, const char *filename)
/* put default values */
memset(c, 0, sizeof(*c));
- /* for some codecs, such as msmpeg4 and opendivx, width and height
+ /* for some codecs, such as msmpeg4 and mpeg4, width and height
MUST be initialized there because these info are not available
in the bitstream */
@@ -320,9 +320,9 @@ void video_decode_example(const char *outfilename, const char *filename)
and this is the only method to use them because you cannot
know the compressed data size before analysing it.
- BUT some other codecs (msmpeg4, opendivx) are inherently
- frame based, so you must call them with all the data for
- one frame exactly. You must also initialize 'width' and
+ BUT some other codecs (msmpeg4, mpeg4) are inherently frame
+ based, so you must call them with all the data for one
+ frame exactly. You must also initialize 'width' and
'height' before initializing them. */
/* NOTE2: some codecs allow the raw parameters (frame size,
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index add0c69121..ea7979bb82 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -283,7 +283,7 @@ int MPV_encode_init(AVCodecContext *avctx)
s->out_format = FMT_H263;
s->h263_rv10 = 1;
break;
- case CODEC_ID_OPENDIVX:
+ case CODEC_ID_MPEG4:
s->out_format = FMT_H263;
s->h263_pred = 1;
s->unrestricted_mv = 1;
@@ -1341,10 +1341,10 @@ AVCodec mjpeg_encoder = {
MPV_encode_end,
};
-AVCodec opendivx_encoder = {
- "opendivx",
+AVCodec mpeg4_encoder = {
+ "mpeg4",
CODEC_TYPE_VIDEO,
- CODEC_ID_OPENDIVX,
+ CODEC_ID_MPEG4,
sizeof(MpegEncContext),
MPV_encode_init,
MPV_encode_picture,
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 1da8456f1a..dccdeb24bf 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -31,6 +31,7 @@ enum OutputFormat {
#define MPEG_BUF_SIZE (16 * 1024)
typedef struct MpegEncContext {
+ struct AVCodecContext *avctx;
/* the following parameters must be initialized before encoding */
int width, height; /* picture size. must be a multiple of 16 */
int gop_size;
@@ -40,7 +41,7 @@ typedef struct MpegEncContext {
enum OutputFormat out_format; /* output format */
int h263_plus; /* h263 plus headers */
int h263_rv10; /* use RV10 variation for H263 */
- int h263_pred; /* use OpenDIVX (aka mpeg4) ac/dc predictions */
+ int h263_pred; /* use mpeg4/h263 ac/dc predictions */
int h263_msmpeg4; /* generate MSMPEG4 compatible stream */
int h263_intel; /* use I263 intel h263 header */
int fixed_qscale; /* fixed qscale if non zero */
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index b32bd18033..26510d87cf 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -350,7 +350,7 @@ void avcodec_register_all(void)
register_avcodec(&h263p_encoder);
register_avcodec(&rv10_encoder);
register_avcodec(&mjpeg_encoder);
- register_avcodec(&opendivx_encoder);
+ register_avcodec(&mpeg4_encoder);
register_avcodec(&msmpeg4_encoder);
#endif /* CONFIG_ENCODERS */
register_avcodec(&pcm_codec);
@@ -359,7 +359,7 @@ void avcodec_register_all(void)
/* decoders */
#ifdef CONFIG_DECODERS
register_avcodec(&h263_decoder);
- register_avcodec(&opendivx_decoder);
+ register_avcodec(&mpeg4_decoder);
register_avcodec(&msmpeg4_decoder);
register_avcodec(&mpeg_decoder);
register_avcodec(&h263i_decoder);