[Mono-dev] gdip_save_tiff_image

Zac Bowling zac at zacbowling.com
Sat May 27 23:02:45 EDT 2006


Don't know if its a bug but gdip_save_tiff_image in
libgdiplus/src/tiffcodec.c has a huge chunk of unreachable code.

Code checks for

...
if (samples_per_pixel == 4) {
... on line: 1010



but just a little bit above it says :

if ((bitmap_data->pixel_format & PixelFormatAlpha) != 0) {
	samples_per_pixel = 3;
	bits_per_sample = 8;
} else {
	samples_per_pixel = 3;
	bits_per_sample = 8;
}


so all that code is never reach...
samples_per_pixel will always be 3.


-- 
Zac Bowling <zac at zacbowling.com>




More information about the Mono-devel-list mailing list