Browse Source

Skip filter byte

pull/187/head
Drawaes 9 years ago
parent
commit
7c6bb5ee27
  1. 2
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

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

@ -577,7 +577,7 @@ namespace ImageSharp.Formats
{
TPixel color = default(TPixel);
BufferSpan<TPixel> pixelBuffer = pixels.GetRowSpan(this.currentRow);
BufferSpan<byte> scanlineBuffer = new BufferSpan<byte>(defilteredScanline);
BufferSpan<byte> scanlineBuffer = new BufferSpan<byte>(defilteredScanline, 1);
switch (this.PngColorType)
{
case PngColorType.Grayscale:

Loading…
Cancel
Save