Skip to content

Commit 0bd6185

Browse files
committed
Fix the Animated WebP coder the frame blend index calculation issue, the end condition should be only endIndex to match the behavior.
1 parent 7fc66ec commit 0bd6185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImageWebPCoder/Classes/SDImageWebPCoder.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ - (UIImage *)safeAnimatedImageFrameAtIndex:(NSUInteger)index {
841841
@autoreleasepool {
842842
[self sd_blendWebpImageWithCanvas:_canvas iterator:iter colorSpace:_colorSpace];
843843
}
844-
} while ((size_t)iter.frame_num < (endIndex + 1) && WebPDemuxNextFrame(&iter));
844+
} while ((size_t)iter.frame_num < endIndex && WebPDemuxNextFrame(&iter));
845845
}
846846
}
847847

0 commit comments

Comments
 (0)