From 8e658d3a06c4e2cea9ec5dab8e13e1596a1a985a Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 1 Jun 2018 20:35:16 +0100 Subject: [PATCH] Ensure WebP can add metadata when compiled with libwebpmux --- libvips/foreign/vips2webp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/foreign/vips2webp.c b/libvips/foreign/vips2webp.c index 3725e100..d736209f 100644 --- a/libvips/foreign/vips2webp.c +++ b/libvips/foreign/vips2webp.c @@ -441,7 +441,7 @@ vips_webp_add_metadata( VipsWebPWriter *writer, VipsImage *image ) if( is_vp8x ) { /* Copy the existing VP8X body and update the flag bits. */ - if( vips_webp_writer_append( &new, writer->mem + 20, 10 ) ) { + if( !vips_webp_writer_append( &new, writer->mem + 20, 10 ) ) { vips_webp_writer_unset( &new ); return( -1 ); }