Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
a2955501d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();