fix tiff regression test (bitexact flag was ignoredwhich caused the
[ffmpeg.git] / libavcodec / tiffenc.c
index d7e881dafbda271a33a611de470a0487bcd41cc1..72353c0bc1cf6d9bd914c92bc0a127469c1d55ef 100644 (file)
@@ -402,6 +402,8 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
     add_entry(s, TIFF_XRES,              TIFF_RATIONAL, 1,      res);
     add_entry(s, TIFF_YRES,              TIFF_RATIONAL, 1,      res);
     add_entry1(s,TIFF_RES_UNIT,          TIFF_SHORT,            2);
+
+    if(!(avctx->flags & CODEC_FLAG_BITEXACT))
     add_entry(s, TIFF_SOFTWARE_NAME,     TIFF_STRING,
               strlen(LIBAVCODEC_IDENT) + 1, LIBAVCODEC_IDENT);