mirror of
https://github.com/nathom/streamrip.git
synced 2024-09-19 19:28:46 -04:00
Fix bit depth conversion bug
This commit is contained in:
parent
77917dc6f0
commit
dfbe53674c
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,7 @@ class Converter:
|
|||
if int(self.bit_depth) == 16:
|
||||
command.extend(["-sample_fmt", "s16"])
|
||||
elif int(self.bit_depth) in (24, 32):
|
||||
command.extend(["-sample_fmt", "s32"])
|
||||
command.extend(["-sample_fmt", "s32p"])
|
||||
else:
|
||||
raise ValueError("Bit depth must be 16, 24, or 32")
|
||||
elif self.bit_depth is not None:
|
||||
|
@ -139,6 +139,8 @@ class Converter:
|
|||
# automatically overwrite
|
||||
command.extend(["-y", self.tempfile])
|
||||
|
||||
logger.debug(command)
|
||||
|
||||
return command
|
||||
|
||||
def _is_command_valid(self):
|
||||
|
|
Loading…
Reference in a new issue