Browse Source

inline variable initialization

pull/771/head
Peter Amrehn 7 years ago
committed by Unknown
parent
commit
3ebcebe99e
  1. 3
      src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs

3
src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs

@ -856,10 +856,9 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
private void ProcessStartOfScanMarker()
{
int selectorsCount = this.InputStream.ReadByte();
int componentIndex = -1;
for (int i = 0; i < selectorsCount; i++)
{
componentIndex = -1;
int componentIndex = -1;
int selector = this.InputStream.ReadByte();
for (int j = 0; j < this.Frame.ComponentIds.Length; j++)

Loading…
Cancel
Save