summaryrefslogtreecommitdiff
path: root/libavcodec/mjpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-09-14 22:07:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-09-14 22:07:35 +0000
commit5596c60cceaee5f59ea67d71601f86c49b21d4fa (patch)
tree2ce8ef80c5be852304ab69dbaeb9b653b9d400d7 /libavcodec/mjpeg.c
parentb7c27ee601009168f874e9367286ae6a815d13b9 (diff)
dont store version for bit-exact tests
Originally committed as revision 948 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r--libavcodec/mjpeg.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index cfd5307fbb..6cfd83160e 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -390,16 +390,18 @@ static void jpeg_put_comments(MpegEncContext *s)
}
/* comment */
- put_marker(p, COM);
- flush_put_bits(p);
- ptr = pbBufPtr(p);
- put_bits(p, 16, 0); /* patched later */
+ if(!ff_bit_exact){
+ put_marker(p, COM);
+ 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;
+ put_string(p, MJPEG_VERSION);
+ size = strlen(MJPEG_VERSION)+3;
#undef MJPEG_VERSION
- ptr[0] = size >> 8;
- ptr[1] = size;
+ ptr[0] = size >> 8;
+ ptr[1] = size;
+ }
}
void mjpeg_picture_header(MpegEncContext *s)