From d3439f4d490f7f4a5956014e795d01dfdeeea8f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Bu=CC=88nemann?= Date: Wed, 2 May 2018 21:50:08 +0200 Subject: [PATCH] Fix wrong value for VIPS_FOREIGN_PNG_FILTER_ALL The value is derived by oring all the filter flags: 0x08 | 0x10 | 0x20 | 0x40 | 0x80 == 0xf8 The value was also checked against PNG_ALL_FILTERS in png.h. --- libvips/include/vips/foreign.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/include/vips/foreign.h b/libvips/include/vips/foreign.h index 9a9fcf7a..3e7ed922 100644 --- a/libvips/include/vips/foreign.h +++ b/libvips/include/vips/foreign.h @@ -518,7 +518,7 @@ typedef enum /*< flags >*/ { VIPS_FOREIGN_PNG_FILTER_UP = 0x20, VIPS_FOREIGN_PNG_FILTER_AVG = 0x40, VIPS_FOREIGN_PNG_FILTER_PAETH = 0x80, - VIPS_FOREIGN_PNG_FILTER_ALL = 0xEA + VIPS_FOREIGN_PNG_FILTER_ALL = 0xF8 } VipsForeignPngFilter; int vips_pngload( const char *filename, VipsImage **out, ... )