Nico Weber 2020-11-29 14:01:16 -05:00 committed by Andreas Kling
parent 2e4832c3da
commit 86cec77eb5
Notes: sideshowbarker 2024-07-19 01:11:44 +09:00

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];