More PDF fixes

This commit is contained in:
NoDRM 2021-11-15 08:40:18 +01:00
parent 007a8e8a15
commit 8e10b090a2

View file

@ -442,7 +442,7 @@ def nunpack(s, default=0):
elif l == 2:
return struct.unpack('>H', s)[0]
elif l == 3:
return struct.unpack('>L', b'\x00'+s)[0]
return struct.unpack('>L', bytes([0]) + s)[0]
elif l == 4:
return struct.unpack('>L', s)[0]
else: