diff --git a/src/ImageSharp/Formats/Png/PngDecoderCore.cs b/src/ImageSharp/Formats/Png/PngDecoderCore.cs index 73edd55b7..4ed3fcecb 100644 --- a/src/ImageSharp/Formats/Png/PngDecoderCore.cs +++ b/src/ImageSharp/Formats/Png/PngDecoderCore.cs @@ -577,7 +577,7 @@ namespace ImageSharp.Formats { TPixel color = default(TPixel); BufferSpan pixelBuffer = pixels.GetRowSpan(this.currentRow); - BufferSpan scanlineBuffer = new BufferSpan(defilteredScanline); + BufferSpan scanlineBuffer = new BufferSpan(defilteredScanline, 1); switch (this.PngColorType) { case PngColorType.Grayscale: