mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
LibGfx/WebP: Check presence of ANMF chunks correctly
Previously, we looked at the wrong variable here.
This commit is contained in:
parent
ac9d60bb13
commit
835d328a6c
1 changed files with 1 additions and 1 deletions
|
@ -1372,7 +1372,7 @@ static ErrorOr<void> decode_webp_extended(WebPLoadingContext& context, ReadonlyB
|
||||||
}
|
}
|
||||||
|
|
||||||
// "ANMF Chunk: [...] If the Animation flag is not set, then this chunk SHOULD NOT be present."
|
// "ANMF Chunk: [...] If the Animation flag is not set, then this chunk SHOULD NOT be present."
|
||||||
if (!context.vp8x_header.has_animation && context.animation_header_chunk.has_value()) {
|
if (!context.vp8x_header.has_animation && !context.animation_frame_chunks.is_empty()) {
|
||||||
dbgln_if(WEBP_DEBUG, "WebPImageDecoderPlugin: Header claims no animation, but ANMF chunks present. Ignoring ANMF chunks.");
|
dbgln_if(WEBP_DEBUG, "WebPImageDecoderPlugin: Header claims no animation, but ANMF chunks present. Ignoring ANMF chunks.");
|
||||||
context.animation_frame_chunks.clear();
|
context.animation_frame_chunks.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue