1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibGfx/JPEGXL: Don't decode the header twice

This is something I missed when I ported the JPEG XL decoder to the new
plugin interface (decoding the header at creation). First sorry because
that's entirely my fault, second sorry because a test should have caught
that.
This commit is contained in:
Lucas CHOLLET 2023-07-21 14:48:11 -04:00 committed by Tim Flynn
parent 65565d377b
commit a2955501d3

View file

@ -1639,7 +1639,7 @@ public:
auto result = [this]() -> ErrorOr<void> {
// A.1 - Codestream structure
TRY(decode_image_header());
// The header is already decoded in JPEGXLImageDecoderPlugin::create()
if (m_metadata.colour_encoding.want_icc)
TODO();