mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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:
parent
835d328a6c
commit
812763e5b9
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
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 0;
|
||||||
|
|
||||||
return anim_or_error.value().loop_count;
|
return anim_or_error.value().loop_count;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue