From f011dcc0d0d6f9131f20e957c6f199cfae9f38bd Mon Sep 17 00:00:00 2001 From: Dmitry Pentin Date: Sun, 1 May 2022 12:02:53 +0300 Subject: [PATCH] Unsafe.Add fix --- .../ComponentProcessors/DownScalingComponentProcessor8.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor8.cs b/src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor8.cs index 36a72769ec..dff1054676 100644 --- a/src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor8.cs +++ b/src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor8.cs @@ -60,7 +60,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder { if (horizontalScale == 1 && verticalScale == 1) { - Unsafe.Add(ref destRef, 0) = value; + destRef = value; return; }