提交 7779fe0d 编写于 作者: H Hui Zhang

fix issue 70

上级 126677a3
......@@ -94,7 +94,7 @@ class AudioSegment(object):
sample_rate = sndfile.samplerate
duration = float(len(sndfile)) / sample_rate
start = 0. if start is None else start
end = 0. if end is None else end
end = duration if end is None else end
if start < 0.0:
start += duration
if end < 0.0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册