From: Paul Brossier Date: Sun, 12 Jan 2014 04:00:15 +0000 (-0400) Subject: python/lib/aubio/slicing.py: next_stamp can be 0 X-Git-Tag: 0.4.1~81 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=d9459762732e2a3463fbe2c5a35f2bb63d1ac5d2;p=aubio.git python/lib/aubio/slicing.py: next_stamp can be 0 --- diff --git a/python/lib/aubio/slicing.py b/python/lib/aubio/slicing.py index 2ffda236..9e0af535 100644 --- a/python/lib/aubio/slicing.py +++ b/python/lib/aubio/slicing.py @@ -29,8 +29,6 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end = None, total_frames = 0 # get next region next_stamp = int(timestamps.pop(0)) - if not next_stamp: - next_stamp = int(timestamps.pop(0)) while True: # get hopsize new samples from source