Browse Source

Update src/ImageSharp/Formats/Jpeg/JpegDecoder.cs

Co-authored-by: Brian Popow <38701097+brianpopow@users.noreply.github.com>
pull/1574/head
James Jackson-South 6 years ago
committed by GitHub
parent
commit
d8fe0f52db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ImageSharp/Formats/Jpeg/JpegDecoder.cs

2
src/ImageSharp/Formats/Jpeg/JpegDecoder.cs

@ -27,7 +27,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
using var decoder = new JpegDecoderCore(configuration, this);
try
{
return await decoder.DecodeAsync<TPixel>(stream);
return await decoder.DecodeAsync<TPixel>(stream).ConfigureAwait(false);
}
catch (InvalidMemoryOperationException ex)
{

Loading…
Cancel
Save