We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f289f9 commit ea12c0dCopy full SHA for ea12c0d
src/ImageSharp/Formats/Jpeg/Components/Decoder/JpegBitReader.cs
@@ -223,7 +223,7 @@ private int ReadStream()
223
// we know we have hit the EOI and completed decoding the scan buffer.
224
if (value == -1 || (this.badData && this.data == 0 && this.stream.Position >= this.stream.Length))
225
{
226
- // We've passed the end of the file stream which means there's no EOI marker
+ // We've hit the end of the file stream more times than allowed which means there's no EOI marker
227
// in the image or the SOS marker has the wrong dimensions set.
228
if (this.eofHitCount > JpegConstants.Huffman.FetchLoop)
229
0 commit comments