From 9adc5dacad8aa51ef2596a369f6b2c9cc58af825 Mon Sep 17 00:00:00 2001 From: Peter Reutemann Date: Wed, 21 Jul 2021 10:13:17 +1200 Subject: [PATCH] fixed max_frames handling --- src/vfs/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vfs/process.py b/src/vfs/process.py index a4a3096..ccb70fc 100644 --- a/src/vfs/process.py +++ b/src/vfs/process.py @@ -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