Skip to content

Commit

Permalink
LibGfx/WebP: Add a VERIFY() for an assumption
Browse files Browse the repository at this point in the history
This should have no behavior change after the previous commit.
  • Loading branch information
nico authored and awesomekling committed Jun 3, 2024
1 parent 857750d commit 4e9480b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e9480b

Please sign in to comment.