mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Merge a701a5d97f
into 001df24935
This commit is contained in:
commit
96ee8f690f
2 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ static ErrorOr<void> decode_avif_header(AVIFLoadingContext& context)
|
||||||
if (context.decoder == nullptr) {
|
if (context.decoder == nullptr) {
|
||||||
return Error::from_string_literal("failed to allocate AVIF decoder");
|
return Error::from_string_literal("failed to allocate AVIF decoder");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This makes the decoder not error if an item in the file is missing the mandatory pixi property.
|
||||||
|
// Reason for this is that older versions of ImageMagick do not set this property, which leads to
|
||||||
|
// broken web content if the error is not ignored.
|
||||||
|
context.decoder->strictFlags &= ~AVIF_STRICT_PIXI_REQUIRED;
|
||||||
}
|
}
|
||||||
|
|
||||||
avifResult result = avifDecoderSetIOMemory(context.decoder, context.data.data(), context.data.size());
|
avifResult result = avifDecoderSetIOMemory(context.decoder, context.data.data(), context.data.size());
|
||||||
|
|
BIN
Tests/LibGfx/test-inputs/avif/missing-pixi-property.avif
Normal file
BIN
Tests/LibGfx/test-inputs/avif/missing-pixi-property.avif
Normal file
Binary file not shown.
Loading…
Reference in a new issue