mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-21 04:57:29 +02:00
fix(stb): a GIF frame after one with the disposal "restore to previous" is restored from the frame two back in the output instead of from memory before the start of the output, which crashed the editor at random when the tutorial played its clips
This commit is contained in:
@@ -7017,7 +7017,7 @@ static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y,
|
||||
}
|
||||
memcpy( out + ((layers - 1) * stride), u, stride );
|
||||
if (layers >= 2) {
|
||||
two_back = out - 2 * stride;
|
||||
two_back = out + (layers - 2) * stride;
|
||||
}
|
||||
|
||||
if (delays) {
|
||||
|
||||
Reference in New Issue
Block a user