Skip to content

Commit 1fea461

Browse files
authored
Merge branch 'main' into bp/issue2030
2 parents 2fbf566 + 8e18352 commit 1fea461

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ImageSharp/Formats/Png/PngDecoderCore.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,14 @@ public IImageInfo Identify(BufferedReadStream stream, CancellationToken cancella
336336
break;
337337
case PngChunkType.End:
338338
goto EOF;
339+
340+
default:
341+
if (this.colorMetadataOnly)
342+
{
343+
this.SkipChunkDataAndCrc(chunk);
344+
}
345+
346+
break;
339347
}
340348
}
341349
finally

0 commit comments

Comments
 (0)