Skip to content
Snippets Groups Projects
Commit e9ef8224 authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato
Browse files

Increment the frame count before checking the limit

Fix an off-by-one
parent 39e2d7ab
No related branches found
No related tags found
No related merge requests found
......@@ -75,11 +75,10 @@ fn main() {
break;
}
count += 1;
if enc.limit != 0 && count >= enc.limit {
break;
} else {
count += 1;
}
io.output.flush().unwrap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment