Browse Source

Fix issue in PNG identify method to skip "uninteresting" chunks, including sBIT.

pull/2019/head
Titus 4 years ago
parent
commit
a01ff4a642
  1. 3
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

3
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -336,6 +336,9 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngChunkType.End: case PngChunkType.End:
goto EOF; goto EOF;
default:
this.SkipChunkDataAndCrc(chunk);
break;
} }
} }
finally finally

Loading…
Cancel
Save