]> granicus.if.org Git - libjpeg-turbo/commitdiff
Further examination of the code reveals that this change is unnecessary. The histogr...
authorDRC <dcommander@users.sourceforge.net>
Fri, 7 Feb 2014 19:06:03 +0000 (19:06 +0000)
committerDRC <dcommander@users.sourceforge.net>
Fri, 7 Feb 2014 19:06:03 +0000 (19:06 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1116 632fc199-4ca6-4c93-a231-07263d6284db

jquant2.c

index d994470570a1eea6c74a820474abf374f9ba26fe..9b060e574cd108c2b3c7fe6d4cdaa8800fb5864c 100644 (file)
--- 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);