diff options
author | dron <dron> | 2003-12-20 13:47:28 +0000 |
---|---|---|
committer | dron <dron> | 2003-12-20 13:47:28 +0000 |
commit | 1f48c2afd6868496e51a5b3dd4f333f787c72421 (patch) | |
tree | c6c612273ce6513301a159a163b749b80d5d0e10 | |
parent | de58bf0e77efc20ef023b3dda24e348faa30d43b (diff) | |
download | libtiff-1f48c2afd6868496e51a5b3dd4f333f787c72421.tar.gz |
Warnings removed.
-rw-r--r-- | libtiff/tif_jpeg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libtiff/tif_jpeg.c b/libtiff/tif_jpeg.c index 47800865..b9992ae1 100644 --- a/libtiff/tif_jpeg.c +++ b/libtiff/tif_jpeg.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_jpeg.c,v 1.15 2003-07-08 20:32:54 warmerda Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_jpeg.c,v 1.16 2003-12-20 13:47:28 dron Exp $ */ /* * Copyright (c) 1994-1997 Sam Leffler @@ -817,7 +817,7 @@ JPEGDecodeRaw(TIFF* tif, tidata_t buf, tsize_t cc, tsample_t s) tsize_t nrows; /* data is expected to be read in multiples of a scanline */ - if (nrows = sp->cinfo.d.image_height) { + if ( (nrows = sp->cinfo.d.image_height) ) { /* Cb,Cr both have sampling factors 1, so this is correct */ JDIMENSION clumps_per_line = sp->cinfo.d.comp_info[1].downsampled_width; int samples_per_clump = sp->samplesperclump; @@ -974,7 +974,6 @@ JPEGSetupEncode(TIFF* tif) * default value is inappropriate for YCbCr. Fill in the * proper value if application didn't set it. */ -#ifdef COLORIMETRY_SUPPORT if (!TIFFFieldSet(tif, FIELD_REFBLACKWHITE)) { float refbw[6]; long top = 1L << td->td_bitspersample; @@ -986,7 +985,6 @@ JPEGSetupEncode(TIFF* tif) refbw[5] = refbw[1]; TIFFSetField(tif, TIFFTAG_REFERENCEBLACKWHITE, refbw); } -#endif break; case PHOTOMETRIC_PALETTE: /* disallowed by Tech Note */ case PHOTOMETRIC_MASK: |