From 644cd49fc0fca214604d5f3f3a34a148f75c6520 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 17 Jul 2026 15:44:32 +1000 Subject: [PATCH] Update ExrDecoderCore.cs --- src/ImageSharp/Formats/Exr/ExrDecoderCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs b/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs index 2cb382de1..abe3ae439 100644 --- a/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs +++ b/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs @@ -649,7 +649,7 @@ internal sealed class ExrDecoderCore : ImageDecoderCore this.Channels = this.HeaderAttributes.Channels; this.Compression = this.HeaderAttributes.Compression; uint rowsPerBlock = ExrUtils.RowsPerBlock(this.Compression); - long chunkCount = (this.Height + (long)rowsPerBlock - 1) / rowsPerBlock; + long chunkCount = (this.Height + rowsPerBlock - 1) / rowsPerBlock; long offsetTableByteCount = chunkCount * sizeof(ulong); // The scanline offset table sits between the header and pixel chunks; proving it