summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2003-03-09 16:07:19 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2003-03-09 16:07:19 +0000
commitce2749d2c462fe90f18f3817af65d81a08e4d0dd (patch)
treedab4d3ed31968c11648be47659c4096782061ee0 /libavcodec
parent7b3da20487f1cc5df5c48e1e5f782c08f241d6b9 (diff)
simplified
Originally committed as revision 1655 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h2
-rw-r--r--libavcodec/common.h3
-rw-r--r--libavcodec/h263.c4
-rw-r--r--libavcodec/mjpeg.c6
4 files changed, 5 insertions, 10 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 29507e1ea8..0bae8dab4b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -18,6 +18,8 @@ extern "C" {
#define LIBAVCODEC_BUILD 4661
#define LIBAVCODEC_BUILD_STR "4661"
+#define LIBAVCODEC_IDENT "FFmpeg" LIBAVCODEC_VERSION "b" LIBAVCODEC_BUILD_STR
+
enum CodecID {
CODEC_ID_NONE,
CODEC_ID_MPEG1VIDEO,
diff --git a/libavcodec/common.h b/libavcodec/common.h
index f7f70e36b3..a1be71b759 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -6,9 +6,6 @@
#ifndef COMMON_H
#define COMMON_H
-#define FFMPEG_VERSION_INT 0x000406
-#define FFMPEG_VERSION "0.4.6"
-
#if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
# define CONFIG_WIN32
#endif
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 05f4baf286..154a8e9233 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -1667,7 +1667,6 @@ static void mpeg4_encode_visual_object_header(MpegEncContext * s){
static void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_number)
{
int vo_ver_id;
- char buf[255];
if(s->max_b_frames || s->quarter_sample){
vo_ver_id= 5;
@@ -1754,8 +1753,7 @@ static void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_n
if(!(s->flags & CODEC_FLAG_BITEXACT)){
put_bits(&s->pb, 16, 0);
put_bits(&s->pb, 16, 0x1B2); /* user_data */
- sprintf(buf, "FFmpeg%sb%s", FFMPEG_VERSION, LIBAVCODEC_BUILD_STR);
- put_string(&s->pb, buf);
+ put_string(&s->pb, LIBAVCODEC_IDENT);
ff_mpeg4_stuffing(&s->pb);
}
}
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index efc9108b69..d05f4cd72b 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -397,10 +397,8 @@ static void jpeg_put_comments(MpegEncContext *s)
flush_put_bits(p);
ptr = pbBufPtr(p);
put_bits(p, 16, 0); /* patched later */
-#define MJPEG_VERSION "FFmpeg" LIBAVCODEC_VERSION "b" LIBAVCODEC_BUILD_STR
- put_string(p, MJPEG_VERSION);
- size = strlen(MJPEG_VERSION)+3;
-#undef MJPEG_VERSION
+ put_string(p, LIBAVCODEC_IDENT);
+ size = strlen(LIBAVCODEC_IDENT)+3;
ptr[0] = size >> 8;
ptr[1] = size;
}