LibGfx/JPEG2000: Make unimplemented markers in main header fatal

We now implement decoding enough marker segments that we can do this.
This commit is contained in:
Nico Weber 2024-04-08 21:02:52 -04:00 committed by Tim Flynn
parent b9677be8a7
commit 1df5c01bfb

View file

@ -549,6 +549,7 @@ static ErrorOr<void> parse_codestream_main_header(JPEG2000LoadingContext& contex
} else {
// FIXME: These are valid main header markers. Parse contents.
dbgln("JPEG2000ImageDecoderPlugin: marker {:#04x} not yet implemented", marker.marker);
return Error::from_string_literal("JPEG2000ImageDecoderPlugin: marker not yet implemented");
}
break;
}