diff --git a/Userland/Libraries/LibGfx/ImageFormats/JPEG2000Loader.cpp b/Userland/Libraries/LibGfx/ImageFormats/JPEG2000Loader.cpp index 27c92746808..ba18cca991d 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/JPEG2000Loader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/JPEG2000Loader.cpp @@ -453,7 +453,7 @@ static ErrorOr read_comment(ReadonlyBytes data) if (comment_type > 1) return Error::from_string_literal("JPEG2000ImageDecoderPlugin: Invalid comment type"); com.type = static_cast(comment_type); - com.data = data.slice(1); + com.data = data.slice(2); dbgln_if(JPEG2000_DEBUG, "JPEG2000ImageDecoderPlugin: COM marker segment: comment_type={}, size()={}", (int)com.type, com.data.size()); if (com.type == Comment::ISO_IEC_8859_15)