comparison tiffenc.c @ 4850:9e471439d2e8 libavcodec

fix tiff regression test (bitexact flag was ignoredwhich caused the LAVC version to be in the file and thus breaking with the last change of that)
author michael
date Sat, 14 Apr 2007 18:58:26 +0000
parents 1a8865f72b04
children 2b72f9bc4f06
comparison
equal deleted inserted replaced
4849:add7658c15ec 4850:9e471439d2e8
400 add_entry1(s,TIFF_ROWSPERSTRIP, TIFF_LONG, s->rps); 400 add_entry1(s,TIFF_ROWSPERSTRIP, TIFF_LONG, s->rps);
401 add_entry(s, TIFF_STRIP_SIZE, TIFF_LONG, strips, strip_sizes); 401 add_entry(s, TIFF_STRIP_SIZE, TIFF_LONG, strips, strip_sizes);
402 add_entry(s, TIFF_XRES, TIFF_RATIONAL, 1, res); 402 add_entry(s, TIFF_XRES, TIFF_RATIONAL, 1, res);
403 add_entry(s, TIFF_YRES, TIFF_RATIONAL, 1, res); 403 add_entry(s, TIFF_YRES, TIFF_RATIONAL, 1, res);
404 add_entry1(s,TIFF_RES_UNIT, TIFF_SHORT, 2); 404 add_entry1(s,TIFF_RES_UNIT, TIFF_SHORT, 2);
405
406 if(!(avctx->flags & CODEC_FLAG_BITEXACT))
405 add_entry(s, TIFF_SOFTWARE_NAME, TIFF_STRING, 407 add_entry(s, TIFF_SOFTWARE_NAME, TIFF_STRING,
406 strlen(LIBAVCODEC_IDENT) + 1, LIBAVCODEC_IDENT); 408 strlen(LIBAVCODEC_IDENT) + 1, LIBAVCODEC_IDENT);
407 409
408 if (avctx->pix_fmt == PIX_FMT_PAL8) { 410 if (avctx->pix_fmt == PIX_FMT_PAL8) {
409 uint16_t pal[256 * 3]; 411 uint16_t pal[256 * 3];