Skip to content

Commit c5b98c4

Browse files
authored
Merge pull request #22 from SDWebImage/fix_animated_webp_frame_blend_issue
Fix the Animated WebP coder the frame blend index calculation issue, he end condition should be only `endIndex` to match the behavior.
2 parents 7fc66ec + 0bd6185 commit c5b98c4

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)