Browse Source

minor JpegDecoderCore cleanup

pull/68/head
Anton Firszov 9 years ago
parent
commit
de7d56eeb6
  1. 1
      ImageSharp.sln.DotSettings
  2. 10
      src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs

1
ImageSharp.sln.DotSettings

@ -342,6 +342,7 @@
<s:Boolean x:Key="/Default/CodeStyle/CSharpUsing/QualifiedUsingAtNestedScope/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=AC/@EntryIndexedValue">AC</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=DC/@EntryIndexedValue">DC</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=EOF/@EntryIndexedValue">EOF</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=FDCT/@EntryIndexedValue">FDCT</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=IDCT/@EntryIndexedValue">IDCT</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=JPEG/@EntryIndexedValue">JPEG</s:String>

10
src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs

@ -1104,7 +1104,7 @@ namespace ImageSharp.Formats
throw new ImageFormatException("DRI has wrong length");
}
this.ReadFull(this.Temp, 0, 2);
this.ReadFull(this.Temp, 0, remaining);
this.RestartInterval = ((int)this.Temp[0] << 8) + (int)this.Temp[1];
}
@ -1453,15 +1453,9 @@ namespace ImageSharp.Formats
/// <summary>
/// The missing ff00 exception.
/// </summary>
// ReSharper disable once InconsistentNaming
internal class MissingFF00Exception : Exception
{
}
/// <summary>
/// The short huffman data exception.
/// </summary>
private class ShortHuffmanDataException : Exception
{
}
}
}
Loading…
Cancel
Save