mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibGfx/WebP: Use context.error() in animation frame decoding function
That also sets the error state on the context.
This commit is contained in:
parent
40e839fd7e
commit
36c8c1129b
Notes:
sideshowbarker
2024-07-17 10:10:18 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/36c8c1129b Pull-request: https://github.com/SerenityOS/serenity/pull/18675
@ -1562,7 +1562,7 @@ static ErrorOr<ImageData> decode_webp_animation_frame_image_data(WebPLoadingCont
|
||||
}
|
||||
|
||||
if (chunk.type != FourCC("VP8 ") && chunk.type != FourCC("VP8L"))
|
||||
return Error::from_string_literal("WebPImageDecoderPlugin: no image data found in animation frame");
|
||||
return context.error("WebPImageDecoderPlugin: no image data found in animation frame");
|
||||
|
||||
image_data.image_data_chunk = chunk;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user