Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -13,6 +13,8 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end = None, · 12 unmodified lines | |||
| 13 | 13 | ||
| 14 | if timestamps[0] != 0: | 14 | if timestamps[0] != 0: |
| 15 | timestamps = [0] + timestamps | 15 | timestamps = [0] + timestamps |
| 16 | if timestamps_end != None: | ||
| 17 | timestamps_end = [timestamps[1] - 1] + timestamps_end | ||
| 16 | 18 | ||
| 17 | if timestamps_end != None: | 19 | if timestamps_end != None: |
| 18 | if len(timestamps_end) != len(timestamps): | 20 | if len(timestamps_end) != len(timestamps): |