diff --git a/src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs b/src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs index c18b9cd99f..a601d521b2 100644 --- a/src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs +++ b/src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs @@ -310,28 +310,6 @@ } this.ProcessBlockImpl(decoder, i, compIndex, hi, scan, ref dc); - - - //fixed (Block8x8F* qtp = &decoder.QuantizationTables[qtIndex]) - //{ - // // Load the previous partially decoded coefficients, if applicable. - // if (decoder.IsProgressive) - // { - // int blockIndex = ((@by * mxx) * hi) + bx; - - // fixed (Block8x8F* bp = &decoder.ProgCoeffs[compIndex][blockIndex]) - // { - // Unsafe.CopyBlock(this.Pointers.Block, bp, (uint)sizeof(Block8x8F)); - // } - // } - // else - // { - // this.Data.Block.Clear(); - // } - // decoder.ProcessBlockImpl(this.ah, this.Pointers.Block, this.Pointers.Temp1, this.Pointers.Temp2, this.Pointers.Unzig, scan, i, this.zigStart, this.zigEnd, this.al, dc, compIndex, this.@by, this.mxx, hi, this.bx, qtp); - //} - - } // for j diff --git a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs index 7af8e534c4..22d4f1ca86 100644 --- a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs @@ -1590,6 +1590,7 @@ namespace ImageSharp.Formats DecoderScanProcessor p = default(DecoderScanProcessor); DecoderScanProcessor.Init(&p, this, remaining, scan); + this.Bits = default(Bits); this.MakeImage(p.mxx, p.myy); p.ProcessBlocks(this, scan, ref dc);