[libpng16] Fixed cut-and-paste errors in the new intel_sse.patch

and added PNG_NO_INTEL_SSE_3BPP macro.
This commit is contained in:
Glenn Randers-Pehrson
2016-02-22 18:48:10 -06:00
parent 6c3d5bd2a0
commit b4f9f5d041
2 changed files with 12 additions and 11 deletions

View File

@@ -32,10 +32,12 @@ png_init_filter_functions_sse2(png_structp pp, unsigned int bpp)
png_debug(1, "in png_init_filter_functions_sse2");
if (bpp == 3)
{
#ifndef PNG_NO_INTEL_SSE_3BPP
pp->read_filter[PNG_FILTER_VALUE_SUB-1] = png_read_filter_row_sub3_sse2;
pp->read_filter[PNG_FILTER_VALUE_AVG-1] = png_read_filter_row_avg3_sse2;
pp->read_filter[PNG_FILTER_VALUE_PAETH-1] =
png_read_filter_row_paeth3_sse2;
#endif
}
else if (bpp == 4)
{