[MPlayer-cvslog] CVS: main mencoder.c,1.318,1.319

Guillaume Poirier CVS syncmail at mplayerhq.hu
Thu Nov 17 20:17:56 CET 2005


CVS change done by Guillaume Poirier CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv28102

Modified Files:
	mencoder.c 
Log Message:
print the number of encoded frames per seconds (fps) with a greater precision
(float instead of int).
Original thread:
Date: Nov 17, 2005 3:25 PM
Subject: [MPlayer-dev-eng] [PATCH] MEncoder: print more precise FPS


Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.318
retrieving revision 1.319
diff -u -r1.318 -r1.319
--- mencoder.c	30 Oct 2005 09:11:40 -0000	1.318
+++ mencoder.c	17 Nov 2005 19:17:53 -0000	1.319
@@ -1426,9 +1426,9 @@
 			duplicatedframes, badframes, skippedframes
 		);
 	} else
-	mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %3dfps Trem:%4dmin %3dmb  A-V:%5.3f [%d:%d]\r",
+	mp_msg(MSGT_AVSYNC,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %5.2ffps Trem:%4dmin %3dmb  A-V:%5.3f [%d:%d]\r",
 	    mux_v->timer, decoded_frameno, (int)(p*100),
-	    (t>1) ? (int)(decoded_frameno/t+0.5) : 0,
+	    (t>1) ? (float)(decoded_frameno/t) : 0,
 	    (p>0.001) ? (int)((t/p-t)/60) : 0, 
 	    (p>0.001) ? (int)(ftello(muxer_f)/p/1024/1024) : 0,
 	    v_pts_corr,




More information about the MPlayer-cvslog mailing list