Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lemisky committed Feb 5, 2022
1 parent a4c28b8 commit f9764b0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,13 @@ def to_pcm(in_path: str) -> tuple[str, int]:
rate=sample_rate,
layout='mono'
)
for frame in in_container.decode(in_stream):
frame.pts = None
for packet in out_stream.encode(frame):
out_container.mux(packet)
try:
for frame in in_container.decode(in_stream):
frame.pts = None
for packet in out_stream.encode(frame):
out_container.mux(packet)
except:
pass
return out_path, sample_rate


Expand Down

0 comments on commit f9764b0

Please sign in to comment.