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.
This commit is contained in:
Kinarobin 2019-09-12 12:06:27 +08:00 committed by GitHub
commit c5b98c4b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ static void FreeImageData(void *info, const void *data, size_t size) {
@autoreleasepool { @autoreleasepool {
[self sd_blendWebpImageWithCanvas:_canvas iterator:iter colorSpace:_colorSpace]; [self sd_blendWebpImageWithCanvas:_canvas iterator:iter colorSpace:_colorSpace];
} }
} while ((size_t)iter.frame_num < (endIndex + 1) && WebPDemuxNextFrame(&iter)); } while ((size_t)iter.frame_num < endIndex && WebPDemuxNextFrame(&iter));
} }
} }