fix anim webp delay check

only test frame duration for animated webp images

thanks Kleis

see https://github.com/libvips/libvips/pull/1257
This commit is contained in:
John Cupitt 2019-03-13 19:09:26 +00:00
parent ca7d91450e
commit 681565f1e3

View File

@ -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" );