[libpng16] Made default Zlib compression settings be configurable. This adds #defines to

pnglibconf.h to control the defaults.
This commit is contained in:
John Bowler
2012-12-20 22:26:18 -06:00
committed by Glenn Randers-Pehrson
parent 5362c9d5e5
commit 24639a63ce
6 changed files with 39 additions and 10 deletions

View File

@@ -338,10 +338,10 @@ png_deflate_claim(png_structrp png_ptr, png_uint_32 owner,
strategy = png_ptr->zlib_strategy;
else if (png_ptr->do_filter != PNG_FILTER_NONE)
strategy = Z_FILTERED;
strategy = PNG_Z_DEFAULT_STRATEGY;
else
strategy = Z_DEFAULT_STRATEGY;
strategy = PNG_Z_DEFAULT_NOFILTER_STRATEGY;
}
else