17
0
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:
maj00r
2026-10-15 18:12:09 +02:00
parent 513daa52cc
commit 0093791067

View File

@@ -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) {