Skip to content

Commit

Permalink
PixelFormats: remove extra parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
tomba committed Nov 2, 2024
1 parent dd461be commit cd14fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pixutils/formats/pixelformats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cd14fa5

Please sign in to comment.