Browse Source

Added todo

pull/1702/head
Dmitry Pentin 5 years ago
parent
commit
97500145b7
  1. 1
      src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs

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

@ -1034,6 +1034,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
// Validate: both must be < 4
if (dcTableIndex >= 4 || acTableIndex >= 4)
{
// TODO: extract as separate method?
JpegThrowHelper.ThrowInvalidImageContentException($"Invalid huffman table for component:{componentSelectorId}: dc={dcTableIndex}, ac={acTableIndex}");
}

Loading…
Cancel
Save