Skip to content

Commit

Permalink
Resolved Issue amietn#75
Browse files Browse the repository at this point in the history
Fixed crash when duration is an exact multiple of interval
  • Loading branch information
zacker150 committed Apr 11, 2020
1 parent 4c14316 commit c705858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcsi/vcsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ def process_file(path, args):
if args.interval is not None:
total_delay = total_delay_seconds(media_info, args)
selected_duration = media_info.duration_seconds - total_delay
args.num_samples = math.floor(selected_duration / args.interval.total_seconds())
args.num_samples = math.floor((selected_duration - 1) / args.interval.total_seconds())
args.num_selected = args.num_samples
args.num_groups = args.num_samples

Expand Down

0 comments on commit c705858

Please sign in to comment.