[MPlayer-dev-eng] [PATCH] mencoder shows 0fps Trem: 0

Steven M. Schultz sms at 2BSD.COM
Tue Dec 2 07:26:52 CET 2003


Hi

	I noticed this on OS/X for a while now - the encoding rate was always
	0fps and the time remaining (Trem:) was always 0.

	Tracked it down to the timer system not being initialized with a
	call to InitTimer(). 

	I used mplayer.c as an example and saw that it simply called
	InitTimer() - did the same thing in mencoder.c and the encoding rate
	and estimated time remaining now appear as non-zero.

	Trivial patch attached.

	Cheers,
	Steven Schultz
-------------- next part --------------
--- mencoder.c.dist	Mon Dec  1 22:20:39 2003
+++ mencoder.c	Mon Dec  1 22:20:04 2003
@@ -402,6 +402,8 @@
 #endif
 #endif
   
+  InitTimer();
+
 // check codec.conf
 if(!parse_codec_cfg(get_path("codecs.conf"))){
   if(!parse_codec_cfg(MPLAYER_CONFDIR "/codecs.conf")){


More information about the MPlayer-dev-eng mailing list