Skip to content

Commit

Permalink
fixed max_frames handling
Browse files Browse the repository at this point in the history
  • Loading branch information
fracpete committed Jul 20, 2021
1 parent fdce258 commit 9adc5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vfs/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def process(input, input_type, nth_frame, max_frames, analysis_input, analysis_o
count += 1
frames_count += 1

if (max_frames > 0) and (max_frames > frames_processed):
if (max_frames > 0) and (frames_processed >= max_frames):
if verbose:
print("Maximum number of processed frames reached: %d" % frames_processed)
break
Expand Down

0 comments on commit 9adc5da

Please sign in to comment.