From 75553f825c3a076ac031e8bb2a25f5c6a65dd893 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 12 Apr 2004 20:06:23 +0000 Subject: bit-exact Originally committed as revision 3007 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/movenc.c | 1 + libavformat/nut.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'libavformat') diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 2b9c7b32eb..0e3fb6a9de 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -799,6 +799,7 @@ static int mov_write_udta_tag(ByteIOContext *pb, MOVContext* mov, } /* Encoder */ + if(!(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT)) { int pos = url_ftell(pb); put_be32(pb, 0); /* size */ diff --git a/libavformat/nut.c b/libavformat/nut.c index 56d733f7cb..1783b1606f 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -613,8 +613,10 @@ static int nut_write_header(AVFormatContext *s) put_str(bc, s->copyright); } /* encoder */ - put_v(bc, 13); /* type */ - put_str(bc, LIBAVFORMAT_IDENT); + if(!(s->streams[0]->codec.flags & CODEC_FLAG_BITEXACT)){ + put_v(bc, 13); /* type */ + put_str(bc, LIBAVFORMAT_IDENT); + } put_v(bc, 0); /* eof info */ update_packetheader(nut, bc, 0, 1); -- cgit v1.2.3