diff --git a/jquant2.c b/jquant2.c index d9944705..9b060e57 100644 --- a/jquant2.c +++ b/jquant2.c @@ -513,8 +513,6 @@ compute_color (j_decompress_ptr cinfo, boxptr boxp, int icolor) } } - if (total == 0) - return; cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total);