Ensure WebP can add metadata when compiled with libwebpmux

This commit is contained in:
Lovell Fuller 2018-06-01 20:35:16 +01:00
parent 364a5daafc
commit 8e658d3a06
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ vips_webp_add_metadata( VipsWebPWriter *writer, VipsImage *image )
if( is_vp8x ) { if( is_vp8x ) {
/* Copy the existing VP8X body and update the flag bits. /* 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 ); vips_webp_writer_unset( &new );
return( -1 ); return( -1 );
} }