From 681565f1e3188e19a66aa455bb2cae85eec7e7a4 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 13 Mar 2019 19:09:26 +0000 Subject: [PATCH] fix anim webp delay check only test frame duration for animated webp images thanks Kleis see https://github.com/libvips/libvips/pull/1257 --- libvips/foreign/webp2vips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvips/foreign/webp2vips.c b/libvips/foreign/webp2vips.c index 55956180..ce56b38d 100644 --- a/libvips/foreign/webp2vips.c +++ b/libvips/foreign/webp2vips.c @@ -641,7 +641,8 @@ read_next_frame( Read *read ) printf( "don't blend\n" ); #endif /*DEBUG*/ - if( read->iter.duration != read->delay ) + if( read->frame_count > 1 && + read->iter.duration != read->delay ) g_warning( "webp2vips: " "not all frames have equal duration" );