]> 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:05:07 +0000 (19:05 +0000)
committerDRC <dcommander@users.sourceforge.net>
Fri, 7 Feb 2014 19:05:07 +0000 (19:05 +0000)
commitd9712ed14bce2d3bff70cc3ae32776cde29cd2de
treec92c211a781864301549324de8dbbb82a6eeb993
parente26c687b211905bdd36ab0aaa04028b3b501701c
parent2885cf58308957705a8eff807bde52342e8df0e6
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/trunk@1115 632fc199-4ca6-4c93-a231-07263d6284db