Commit e9ef8224 authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato

Increment the frame count before checking the limit

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