mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibGfx/GIF: Shorten the lifetime of lzw_encoded_bytes_expected
This commit is contained in:
committed by
Andreas Kling
parent
4fd7d58c51
commit
7aa76e6c9f
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user