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 | 14 | if timestamps[0] != 0: |
| 15 | 15 | timestamps = [0] + timestamps |
| 16 | + if timestamps_end != None: | |
| 17 | + timestamps_end = [timestamps[1] - 1] + timestamps_end | |
| 16 | 18 | |
| 17 | 19 | if timestamps_end != None: |
| 18 | 20 | if len(timestamps_end) != len(timestamps): |