fix issue 70

pull/519/head
Hui Zhang 5 years ago
parent 126677a35c
commit 7779fe0db0

@ -94,7 +94,7 @@ class AudioSegment(object):
sample_rate = sndfile.samplerate sample_rate = sndfile.samplerate
duration = float(len(sndfile)) / sample_rate duration = float(len(sndfile)) / sample_rate
start = 0. if start is None else start 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: if start < 0.0:
start += duration start += duration
if end < 0.0: if end < 0.0:

Loading…
Cancel
Save