Skip to content

Commit

Permalink
parser: IM4PData: account for all LZFSE magic values
Browse files Browse the repository at this point in the history
This prevented some iBootData IM4Ps from being correctly recognized as LZFSE-compressed
  • Loading branch information
m1stadev committed Jul 29, 2024
1 parent ccda09b commit 7cb9cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyimg4/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ def _detect_compression(self, size: int, data: bytes) -> None:
elif data.startswith(b'complzss'):
self._compression = Compression.LZSS

elif data.startswith(b'bvx2') and b'bvx$' in self.data:
elif data.startswith(b'bvx') and b'bvx$' in self.data:
self._compression = Compression.LZFSE

else:
Expand Down

0 comments on commit 7cb9cbe

Please sign in to comment.