Skip to content

Commit 4f6bd17

Browse files
Fix PngMetadata
1 parent be0be69 commit 4f6bd17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ImageSharp/Formats/Png/PngDecoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ protected override Image Decode(PngDecoderOptions options, Stream stream, Cancel
5353
stream.Position = 0;
5454

5555
PngMetadata meta = info.Metadata.GetPngMetadata();
56-
PngColorType color = meta.ColorType.GetValueOrDefault();
57-
PngBitDepth bits = meta.BitDepth.GetValueOrDefault();
56+
PngColorType color = meta.ColorType;
57+
PngBitDepth bits = meta.BitDepth;
5858

5959
switch (color)
6060
{

0 commit comments

Comments
 (0)