From 4c26dd9a5f49a90ca9a057be0a2d763c4e2ed3d8 Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Thu, 14 Jun 2018 07:52:50 -0700 Subject: [PATCH] stackalloc chroma --- src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs b/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs index aa624838c..9ffd40c93 100644 --- a/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs +++ b/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs @@ -738,7 +738,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg { // "default" to 4:2:0 Span subsamples = stackalloc byte[] { 0x22, 0x11, 0x11 }; - byte[] chroma = { 0x00, 0x01, 0x01 }; + Span chroma = stackalloc byte[] { 0x00, 0x01, 0x01 }; switch (this.subsample) {