Round up when computing number of frames. - vtv-tools - virtual terminal video tools HTML git clone git://bitreich.org/vtv-tools git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/vtv-tools DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 3845cc906aef5672cd3c68dc3991565ba9f27169 DIR parent 331634ec6b52c5c8d5ac59ef3d950bae0d24c24c HTML Author: Troels Henriksen <athas@sigkill.dk> Date: Tue, 28 May 2024 14:51:26 +0200 Round up when computing number of frames. Diffstat: M src/vtv-player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/src/vtv-player.c b/src/vtv-player.c @@ -59,7 +59,7 @@ int main(int argc, char* argv[]) { exit(1); } - int num_frames = vtv->num_lines / frame_lines; + int num_frames = (vtv->num_lines + frame_lines - 1) / frame_lines; hide_cursor(); clear_screen();