From f3af706c2a489333f816843bc986a6bafe47719b Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Thu, 2 Feb 2012 23:11:45 -0600 Subject: [libpng16] Imported from libpng-1.6.0beta05.tar --- contrib/pngminus/pnm2png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/pngminus') diff --git a/contrib/pngminus/pnm2png.c b/contrib/pngminus/pnm2png.c index d098e33cb..a44436717 100644 --- a/contrib/pngminus/pnm2png.c +++ b/contrib/pngminus/pnm2png.c @@ -239,7 +239,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace, get_token(pnm_file, maxval_token); sscanf (maxval_token, "%lu", &ul_maxval); maxval = (png_uint_32) ul_maxval; - + if (maxval <= 1) bit_depth = 1; else if (maxval <= 3) -- cgit v1.2.1