1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

LibGfx: Make some GIFLoader magic numbers a bit less magic

No behavior change.
This commit is contained in:
Nico Weber 2020-11-19 20:11:25 -05:00 committed by Andreas Kling
parent 967c82c1be
commit 700fe315cf

View file

@ -455,7 +455,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
if (stream.handle_any_error())
return false;
if (sentinel == 0x21) {
if (sentinel == '!') {
u8 extension_type = 0;
stream >> extension_type;
if (stream.handle_any_error())
@ -528,7 +528,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
continue;
}
if (sentinel == 0x2c) {
if (sentinel == ',') {
context.images.append(move(current_image));
auto& image = context.images.last();
@ -595,7 +595,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
continue;
}
if (sentinel == 0x3b) {
if (sentinel == ';') {
break;
}