From 0093791067a6471a3c2276dc6d96d192c7285739 Mon Sep 17 00:00:00 2001 From: maj00r Date: Thu, 15 Oct 2026 18:12:09 +0200 Subject: [PATCH] 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 --- stb/stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb/stb_image.h b/stb/stb_image.h index a632d543..811e915c 100644 --- a/stb/stb_image.h +++ b/stb/stb_image.h @@ -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) {