Skip to content

Commit ea12c0d

Browse files
Update comment
1 parent 4f289f9 commit ea12c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Jpeg/Components/Decoder/JpegBitReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private int ReadStream()
223223
// we know we have hit the EOI and completed decoding the scan buffer.
224224
if (value == -1 || (this.badData && this.data == 0 && this.stream.Position >= this.stream.Length))
225225
{
226-
// We've passed the end of the file stream which means there's no EOI marker
226+
// We've hit the end of the file stream more times than allowed which means there's no EOI marker
227227
// in the image or the SOS marker has the wrong dimensions set.
228228
if (this.eofHitCount > JpegConstants.Huffman.FetchLoop)
229229
{

0 commit comments

Comments
 (0)