1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibGfx/WebP: Stop dropping ANIM chunk decoding errors

decode_webp_chunks() was already called 5 lines up, no need to do that
again.
This commit is contained in:
Nico Weber 2023-05-05 14:34:05 -04:00 committed by Andreas Kling
parent 835d328a6c
commit 812763e5b9

View file

@ -1536,7 +1536,7 @@ size_t WebPImageDecoderPlugin::loop_count()
}
auto anim_or_error = decode_webp_chunk_ANIM(*m_context, m_context->animation_header_chunk.value());
if (decode_webp_chunks(*m_context).is_error())
if (anim_or_error.is_error())
return 0;
return anim_or_error.value().loop_count;