Browse Source

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.
Lucas CHOLLET 2 years ago
parent
commit
a2955501d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibGfx/ImageFormats/JPEGXLLoader.cpp

+ 1 - 1
Userland/Libraries/LibGfx/ImageFormats/JPEGXLLoader.cpp

@@ -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();