> That other problem is probably some bug in the % (mod) functions
> in timestatus().  Hopefully it will bother someone enough that they
> will post a patch :-)

please test this one  (rounding in all time fields, not only seconds)

--- lame3.31/musicin.c~ Wed Sep 29 06:23:43 1999
+++ lame3.31/musicin.c  Sun Oct  3 05:50:19 1999
@@ -179,16 +179,16 @@
     frameNum, 
     totalframes-1,
     percent,
-    ((int)process_time_so_far/3600), 
-    ((int)(process_time_so_far/60)%60), 
+    ((int)(0.5+process_time_so_far)/3600), 
+    ((int)((0.5+process_time_so_far)/60)%60), 
     ( (int)(0.5+process_time_so_far)%60) ,
-    ((int)process_estimated/3600),
-    (((int)process_estimated/60)%60), 
+    ((int)(0.5+process_estimated)/3600),
+    (((int)(0.5+process_estimated)/60)%60), 
     ( (int)(0.5+process_estimated)%60) ,
-    (((int)time_so_far/3600)), 
-    (((int)time_so_far/60)%60), 
+    (((int)(0.5+time_so_far)/3600)), 
+    (((int)(0.5+time_so_far)/60)%60), 
     ( (int)(0.5 + time_so_far)%60),
-    (((int)estimated/3600)),(((int)estimated/60)%60), 
+    (((int)(0.5+estimated)/3600)),(((int)(0.5+estimated)/60)%60), 
     ((int)(0.5+estimated)%60),
     str2,
     (((int)eta/3600)%24),(((int)eta/60)%60), ((int)eta%60));




--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to