Browse Source

Fix #345

af/merge-core
JimBobSquarePants 9 years ago
parent
commit
5b8077bfe0
  1. 2
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

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

@ -301,7 +301,7 @@ namespace SixLabors.ImageSharp.Formats.Png
int mask = 0xFF >> (8 - bits);
int resultOffset = 0;
for (int i = 0; i < bytesPerScanline; i++)
for (int i = 0; i < bytesPerScanline - 1; i++)
{
byte b = source[i];
for (int shift = 0; shift < 8; shift += bits)

Loading…
Cancel
Save