From 85b221e4d3e7f42cfcf4a491b357b137f731e9d6 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 29 Feb 2012 17:35:00 +0200 Subject: dpxenc: Don't include the libavcodec ident if bitexact mode is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids breaking fate every time the lavc version is bumped. Signed-off-by: Martin Storsjö --- libavcodec/dpxenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/dpxenc.c') diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c index c731bb44c5..89548ba0c3 100644 --- a/libavcodec/dpxenc.c +++ b/libavcodec/dpxenc.c @@ -126,7 +126,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, memcpy (buf + 8, "V1.0", 4); write32(buf + 20, 1); /* new image */ write32(buf + 24, HEADER_SIZE); - memcpy (buf + 160, LIBAVCODEC_IDENT, FFMIN(sizeof(LIBAVCODEC_IDENT), 100)); + if (!(avctx->flags & CODEC_FLAG_BITEXACT)) + memcpy (buf + 160, LIBAVCODEC_IDENT, FFMIN(sizeof(LIBAVCODEC_IDENT), 100)); write32(buf + 660, 0xFFFFFFFF); /* unencrypted */ /* Image information header */ -- cgit v1.2.3