mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibGfx: Remove home-grown PNG codec in favor of libpng+apng
This commit is contained in:
parent
fed4668fb1
commit
8a3dc5ea0a
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/awesomekling
Commit: 8a3dc5ea0a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/223
Reviewed-by: https://github.com/tcl3
8 changed files with 306 additions and 1772 deletions
|
@ -363,7 +363,10 @@ TEST_CASE(test_png_malformed_frame)
|
|||
|
||||
for (auto test_input : test_inputs) {
|
||||
auto file = TRY_OR_FAIL(Core::MappedFile::map(test_input));
|
||||
auto plugin_decoder = TRY_OR_FAIL(Gfx::PNGImageDecoderPlugin::create(file->bytes()));
|
||||
auto plugin_decoder_or_error = Gfx::PNGImageDecoderPlugin::create(file->bytes());
|
||||
if (plugin_decoder_or_error.is_error())
|
||||
continue;
|
||||
auto plugin_decoder = plugin_decoder_or_error.release_value();
|
||||
auto frame_or_error = plugin_decoder->frame(0);
|
||||
EXPECT(frame_or_error.is_error());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue