LibGfx/WebP: Add a VERIFY() for an assumption

This should have no behavior change after the previous commit.
This commit is contained in:
Nico Weber 2024-06-02 20:07:29 -04:00 committed by Andreas Kling
parent 857750dfed
commit 4e9480b719
Notes: sideshowbarker 2024-07-17 02:05:41 +09:00

View File

@ -484,6 +484,8 @@ static ErrorOr<void> decode_webp_animation_frame_chunks(WebPLoadingContext& cont
if (context.state >= WebPLoadingContext::State::AnimationFrameChunksDecoded)
return {};
VERIFY(context.state == WebPLoadingContext::State::ChunksDecoded);
context.animation_header_chunk_data = TRY(decode_webp_chunk_ANIM(context.animation_header_chunk.value()));
Vector<ANMFChunk> decoded_chunks;