[devel] Added expand_16 suppport to the high level interface.
diff --git a/pngread.c b/pngread.c
index 910f1b2..b75dfb2 100644
--- a/pngread.c
+++ b/pngread.c
@@ -1387,6 +1387,12 @@
png_set_gray_to_rgb(png_ptr);
#endif
+/* Added at libpng-1.5.3 */
+#ifdef PNG_READ_EXPAND_16_SUPPORTED
+ if (transforms & PNG_TRANSFORM_EXPAND_16)
+ png_set_expand_16(png_ptr);
+#endif
+
/* We don't handle adding filler bytes */
/* We use png_read_image and rely on that for interlace handling, but we also
diff --git a/pngrtran.c b/pngrtran.c
index 52c44ca..cdf84ce 100644
--- a/pngrtran.c
+++ b/pngrtran.c
@@ -187,7 +187,7 @@
output_gamma = PNG_GAMMA_sRGB;
}
- /* Else validate the value to ensure it is in a reasonable range, the value
+ /* Else validate the value to ensure it is in a reasonable range. The value
* is expected to be 1 or greater, but this range test allows for some
* viewing correction values. The intent is to weed out users of this API
* who use the inverse of the gamma value accidentally! Since some of these