]> granicus.if.org Git - libjpeg-turbo/commit
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)
commit2885cf58308957705a8eff807bde52342e8df0e6
tree23948b0f7adfbf6f18d345b43e8d3cd9f574da22
parentd4ab63d191d69b0197215c39c8328a31b523ca0f
Further examination of the code reveals that this change is unnecessary.  The histogram stores a count of each color in the image, so it will always contain at least one non-zero element, and thus the total can never be zero.  Since the histogram is generated from the image data and not read from the header, there is no chance that header corruption would affect it.

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