mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25: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:
committed by
Andreas Kling
parent
835d328a6c
commit
812763e5b9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user