Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Fix syaz0 header bug with RSTB estimates
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceneNerd committed Jan 14, 2020
1 parent 4e3aae8 commit bd360f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bcml/rstable.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def guess_bfres_size(file: Union[Path, bytes], name: str = '') -> int:
else:
if file.suffix.startswith('.s'):
with file.open('rb') as f:
real_size = syaz0.get_header(f.read(16))
real_size = syaz0.get_header(f.read(16)).uncompressed_size
else:
real_size = file.stat().st_size
if name == '':
Expand Down Expand Up @@ -161,7 +161,7 @@ def guess_aamp_size(file: Union[Path, bytes], ext: str = '') -> int:
else:
if file.suffix.startswith('.s'):
with file.open('rb') as f:
real_size = syaz0.get_header(f.read(16))
real_size = syaz0.get_header(f.read(16)).uncompressed_size
else:
real_size = file.stat().st_size
if ext == '':
Expand Down

0 comments on commit bd360f2

Please sign in to comment.