Skip to content

Commit

Permalink
Fix converter custom parameter builder (AudioSegment.from_file)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohml committed Aug 14, 2023
1 parent 996cec4 commit 5bf831b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,7 @@ Grzegorz Kotfis
github: gkotfis

Pål Orby
github: orby
github: orby

Pedro Lira
github: pedrohml
4 changes: 2 additions & 2 deletions pydub/audio_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,12 +755,12 @@ def is_format(f):
if duration is not None:
conversion_command += ["-t", str(duration)]

conversion_command += ["-"]

if parameters is not None:
# extend arguments with arbitrary set
conversion_command.extend(parameters)

conversion_command += ["-"]

log_conversion(conversion_command)

p = subprocess.Popen(conversion_command, stdin=stdin_parameter,
Expand Down

0 comments on commit 5bf831b

Please sign in to comment.