diff --git a/tools/raw2tiff.c b/tools/raw2tiff.c index 7298e80..6ba23a0 100644 --- a/tools/raw2tiff.c +++ b/tools/raw2tiff.c @@ -255,7 +255,6 @@ main(int argc, char* argv[]) case COMPRESSION_JPEG: if (photometric == PHOTOMETRIC_RGB && jpegcolormode == JPEGCOLORMODE_RGB) - photometric = PHOTOMETRIC_YCBCR; TIFFSetField(out, TIFFTAG_JPEGQUALITY, quality); TIFFSetField(out, TIFFTAG_JPEGCOLORMODE, jpegcolormode); break; diff --git a/tools/tiff2ps.c b/tools/tiff2ps.c index 82a5d84..3563f30 100644 --- a/tools/tiff2ps.c +++ b/tools/tiff2ps.c @@ -2964,7 +2964,9 @@ tsize_t Ascii85EncodeBlock( uint8 * ascii85_p, unsigned f_eod, const uint8 * raw if ( val32 == 0 ) /* Special case */ { - ascii85_p[ascii85_l] = 'z'; + if(ascii85_p != NULL) { + ascii85_p[ascii85_l] = 'z'; + } rc = 1; } diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c index 722b132..470a18d 100644 --- a/tools/tiffcrop.c +++ b/tools/tiffcrop.c @@ -958,7 +958,6 @@ static int readContigTilesIntoBuffer (TIFF* in, uint8* buf, return 1; } } - prev_trailing_bits += trailing_bits; /* if (prev_trailing_bits > 7) */ /* prev_trailing_bits-= 8; */ }