From cd14fa52c92444fbf176eb6901cc3703fa9f232d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 2 Nov 2024 12:13:35 +0200 Subject: [PATCH] PixelFormats: remove extra parenthesis --- pixutils/formats/pixelformats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixutils/formats/pixelformats.py b/pixutils/formats/pixelformats.py index 07f0a7f..8df4814 100644 --- a/pixutils/formats/pixelformats.py +++ b/pixutils/formats/pixelformats.py @@ -49,7 +49,7 @@ def stride(self, width: int, plane: int = 0, align: int = 1): stride = int(ceil(width / self.pixelspergroup[0])) * self.planes[plane].bytespergroup - return int(ceil((stride / align))) * align + return int(ceil(stride / align)) * align def planesize(self, width: int, height: int, plane: int = 0, align: int = 1): stride = self.stride(width, plane, align)