Browse Source

Fix progressive bool assignment

pull/298/head
James Jackson-South 9 years ago
parent
commit
b025ed6bb6
  1. 2
      src/ImageSharp/Formats/Jpeg/Port/JpegDecoderCore.cs

2
src/ImageSharp/Formats/Jpeg/Port/JpegDecoderCore.cs

@ -287,7 +287,7 @@ namespace ImageSharp.Formats.Jpeg.Port
this.frame = new Frame
{
Extended = frameMarker == JpegConstants.Markers.SOF1,
Progressive = frameMarker == JpegConstants.Markers.SOF1,
Progressive = frameMarker == JpegConstants.Markers.SOF2,
Precision = this.temp[0],
Scanlines = (short)((this.temp[1] << 8) | this.temp[2]),
SamplesPerLine = (short)((this.temp[3] << 8) | this.temp[4]),

Loading…
Cancel
Save