diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGfx/GIFLoader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/GIFLoader.cpp b/Userland/Libraries/LibGfx/GIFLoader.cpp index 4e69cc7fb5..278c5a686c 100644 --- a/Userland/Libraries/LibGfx/GIFLoader.cpp +++ b/Userland/Libraries/LibGfx/GIFLoader.cpp @@ -404,7 +404,8 @@ static bool decode_frame(GIFLoadingContext& context, size_t frame_index) if (interlace_pass < 4) row = INTERLACE_ROW_OFFSETS[interlace_pass]; } else { - row += INTERLACE_ROW_STRIDES[interlace_pass]; + if (interlace_pass < 4) + row += INTERLACE_ROW_STRIDES[interlace_pass]; } } else { ++row; |