From 593d247cd369513b7c257b969cb6395e4001307d Mon Sep 17 00:00:00 2001 From: Peter Amrehn Date: Sun, 20 Oct 2019 09:48:57 +0200 Subject: [PATCH] height comes before width, switch order. --- src/ImageSharp/Formats/WebP/WebPDecoderCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/WebP/WebPDecoderCore.cs b/src/ImageSharp/Formats/WebP/WebPDecoderCore.cs index 769c1a1caf..72000b8e99 100644 --- a/src/ImageSharp/Formats/WebP/WebPDecoderCore.cs +++ b/src/ImageSharp/Formats/WebP/WebPDecoderCore.cs @@ -231,8 +231,8 @@ namespace SixLabors.ImageSharp.Formats.WebP // The first 28 bits of the bitstream specify the width and height of the image. var bitReader = new Vp8LBitreader(this.currentStream); - uint height = bitReader.Read(WebPConstants.Vp8LImageSizeBits) + 1; uint width = bitReader.Read(WebPConstants.Vp8LImageSizeBits) + 1; + uint height = bitReader.Read(WebPConstants.Vp8LImageSizeBits) + 1; return new WebPImageInfo() {