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:
parent
ca7d91450e
commit
681565f1e3
@ -641,7 +641,8 @@ read_next_frame( Read *read )
|
|||||||
printf( "don't blend\n" );
|
printf( "don't blend\n" );
|
||||||
#endif /*DEBUG*/
|
#endif /*DEBUG*/
|
||||||
|
|
||||||
if( read->iter.duration != read->delay )
|
if( read->frame_count > 1 &&
|
||||||
|
read->iter.duration != read->delay )
|
||||||
g_warning( "webp2vips: "
|
g_warning( "webp2vips: "
|
||||||
"not all frames have equal duration" );
|
"not all frames have equal duration" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user