Skip to content

Commit 9c48c19

Browse files
Track input stream position on load. (#820)
1 parent 2849fd9 commit 9c48c19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ImageSharp/IO/DoubleBufferedStreamReader.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ internal class DoubleBufferedStreamReader : IDisposable
4242
public DoubleBufferedStreamReader(MemoryAllocator memoryAllocator, Stream stream)
4343
{
4444
this.stream = stream;
45+
this.Position = (int)stream.Position;
4546
this.length = (int)stream.Length;
4647
this.managedBuffer = memoryAllocator.AllocateManagedByteBuffer(ChunkLength, AllocationOptions.Clean);
4748
this.bufferChunk = this.managedBuffer.Array;

0 commit comments

Comments
 (0)