Fix the Animated WebP coder the frame blend index calculation issue, the end condition should be only `endIndex` to match the behavior.

This commit is contained in:
DreamPiggy 2019-09-12 11:36:20 +08:00
parent 7fc66ec22f
commit 0bd6185484
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 {
[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));
}
}