mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03:00
LibGfx/WebP: Add a VERIFY() for an assumption
This should have no behavior change after the previous commit.
This commit is contained in:
parent
857750dfed
commit
4e9480b719
Notes:
sideshowbarker
2024-07-17 02:05:41 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/4e9480b719 Pull-request: https://github.com/SerenityOS/serenity/pull/24534 Reviewed-by: https://github.com/ADKaster ✅
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user