1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00
Nico Weber 2020-11-29 14:01:16 -05:00 committed by Andreas Kling
parent 2e4832c3da
commit 86cec77eb5

View file

@ -354,12 +354,13 @@ static bool decode_frame(GIFLoadingContext& context, size_t frame_index)
if (code.value() == clear_code) {
decoder.reset();
continue;
} else if (code.value() == end_of_information_code) {
break;
}
if (code.value() == end_of_information_code)
break;
if (!image.width)
continue;
auto colors = decoder.get_output();
for (const auto& color : colors) {
auto c = color_map[color];