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:
parent
7fc66ec22f
commit
0bd6185484
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue