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
1 file changed