Skip to content

Commit

Permalink
detect m1 macs correctly for ffmpeg filenames (#83)
Browse files Browse the repository at this point in the history
* detect m1 macs correctly for ffmpeg filenames

* moved import to top of file
  • Loading branch information
kamikaz1k authored Jan 26, 2023
1 parent 9768af4 commit 77a3d85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imageio_ffmpeg/_definitions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import sys
import struct

Expand All @@ -7,6 +8,9 @@
def get_platform():
bits = struct.calcsize("P") * 8
if sys.platform.startswith("linux"):
architecture = platform.machine()
if architecture == "aarch64":
return "linuxaarch64"
return "linux{}".format(bits)
elif sys.platform.startswith("freebsd"):
return "freebsd{}".format(bits)
Expand Down

0 comments on commit 77a3d85

Please sign in to comment.