From f27173e2b95556b661d59b5b27c10ce9aa34b1f4 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 3 Jun 2020 00:50:36 +0200 Subject: [PATCH] tttocea608: fix pts incrementation in roll up mode Simple operator mistake Part-of: --- video/closedcaption/src/tttocea608.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/closedcaption/src/tttocea608.rs b/video/closedcaption/src/tttocea608.rs index 09b04300..387607ef 100644 --- a/video/closedcaption/src/tttocea608.rs +++ b/video/closedcaption/src/tttocea608.rs @@ -58,7 +58,7 @@ fn increment_pts( .mul_div_round(fps_d, fps_n) .unwrap(); - if *frame_no <= max_frame_no { + if *frame_no < max_frame_no { *frame_no += 1; }