mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibGfx/GIF: Shorten the lifetime of lzw_encoded_bytes_expected
This commit is contained in:
parent
4fd7d58c51
commit
7aa76e6c9f
Notes:
sideshowbarker
2024-07-16 18:06:41 +09:00
Author: https://github.com/LucasChollet
Commit: 7aa76e6c9f
Pull-request: https://github.com/SerenityOS/serenity/pull/24261
Reviewed-by: https://github.com/nico ✅
1 changed files with 3 additions and 3 deletions
|
@ -350,10 +350,10 @@ static ErrorOr<void> load_gif_frame_descriptors(GIFLoadingContext& context)
|
|||
|
||||
image->lzw_min_code_size = TRY(context.stream.read_value<u8>());
|
||||
|
||||
u8 lzw_encoded_bytes_expected = 0;
|
||||
|
||||
for (;;) {
|
||||
lzw_encoded_bytes_expected = TRY(context.stream.read_value<u8>());
|
||||
auto const lzw_encoded_bytes_expected = TRY(context.stream.read_value<u8>());
|
||||
|
||||
// Block terminator
|
||||
if (lzw_encoded_bytes_expected == 0)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue