|
|
@ -336,6 +336,14 @@ namespace SixLabors.ImageSharp.Formats.Png |
|
|
break; |
|
|
break; |
|
|
case PngChunkType.End: |
|
|
case PngChunkType.End: |
|
|
goto EOF; |
|
|
goto EOF; |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
|
if (this.colorMetadataOnly) |
|
|
|
|
|
{ |
|
|
|
|
|
this.SkipChunkDataAndCrc(chunk); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
finally |
|
|
finally |
|
|
@ -1398,8 +1406,6 @@ namespace SixLabors.ImageSharp.Formats.Png |
|
|
{ |
|
|
{ |
|
|
chunk = new PngChunk(length, type); |
|
|
chunk = new PngChunk(length, type); |
|
|
|
|
|
|
|
|
this.SkipChunkDataAndCrc(chunk); |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|