Browse Source

Fix issue #2149

pull/2150/head
Brian Popow 4 years ago
parent
commit
e84100a05e
  1. 1
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/T6TiffCompression.cs

1
src/ImageSharp/Formats/Tiff/Compression/Decompressors/T6TiffCompression.cs

@ -52,6 +52,7 @@ namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
protected override void Decompress(BufferedReadStream stream, int byteCount, int stripHeight, Span<byte> buffer)
{
int height = stripHeight;
buffer.Clear();
using System.Buffers.IMemoryOwner<byte> scanLineBuffer = this.Allocator.Allocate<byte>(this.width * 2);
Span<byte> scanLine = scanLineBuffer.GetSpan().Slice(0, this.width);

Loading…
Cancel
Save