diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2015-02-22 19:39:17 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2015-02-22 19:39:17 -0600 |
commit | c6b29ff896a013961b41375c7fdac94b20513ae0 (patch) | |
tree | 13dd69d7673bb6f2effab7743ff07bd05051adfd /pngwrite.c | |
parent | 76f93293a0afff6246db20deec4bc4032c164b44 (diff) |
[libpng16] Put #ifdef/#endif around png_set_compression_level in pngwrite.c
Diffstat (limited to 'pngwrite.c')
-rw-r--r-- | pngwrite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pngwrite.c b/pngwrite.c index 1a21aa3ad..f03aed2d9 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -2289,7 +2289,9 @@ png_image_write_main(png_voidp argument) * it about 50 times. The speed-up in pngstest was about 10-20% of the * total (user) time on a heavily loaded system. */ +#ifdef PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED png_set_compression_level(png_ptr, 3); +#endif } /* Check for the cases that currently require a pre-transform on the row |