[gegl] gcut: fix terminal output during rendering for seconds



commit 58d5652ff62641ac10a20ceb2645b4a07448041f
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Jul 27 22:13:38 2017 +0200

    gcut: fix terminal output during rendering for seconds

 gcut/gcut.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gcut/gcut.c b/gcut/gcut.c
index b5709b5..13ea22f 100644
--- a/gcut/gcut.c
+++ b/gcut/gcut.c
@@ -1012,9 +1012,9 @@ static void encode_frames (GeglEDL *edl)
     int frame_no_ui = frame_no;
     gcut_set_pos (edl, frame_no_ui / edl->fps);
 
-    fprintf (stdout, "\r%1.2f%% %04d / %f   ",
-     100.0 * (frame_no-edl->range_start) * 1.0 / (edl->range_end - edl->range_start),
-     frame_no, edl->range_end);
+    fprintf (stdout, "\r%1.2f%% %04d / %04d   ",
+     100.0 * (frame_no/edl->fps-edl->range_start) * 1.0 / (edl->range_end - edl->range_start),
+     frame_no, (int)(edl->range_end * edl->fps));
 
     gegl_node_set (edl->encode, "audio", gcut_get_audio (edl), NULL);
     gegl_node_process (edl->encode);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]