[Mplayer-cvslog] CVS: main mplayer.c,1.411,1.412

Nick Kurshev nick at mplayer.dev.hu
Sun Feb 24 18:00:22 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv30167/main

Modified Files:
	mplayer.c 
Log Message:
make -frames key optional for max/total benchmark

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.411
retrieving revision 1.412
diff -u -r1.411 -r1.412
--- mplayer.c	24 Feb 2002 16:22:22 -0000	1.411
+++ mplayer.c	24 Feb 2002 17:00:19 -0000	1.412
@@ -256,7 +256,7 @@
 static int force_srate=0;
 static int frame_dropping=0; // option  0=no drop  1= drop vo  2= drop decode
 static int play_n_frames=-1;
-static int our_n_frames;
+static uint32_t our_n_frames=0;
 
 // screen info:
 char* video_driver=NULL; //"mga"; // default
@@ -1563,7 +1563,6 @@
 total_time_usage_start=GetTimer();
 audio_time_usage=0; video_time_usage=0; vout_time_usage=0;
 max_audio_time_usage=0; max_video_time_usage=0; max_vout_time_usage=0;
-our_n_frames=play_n_frames;
 while(!eof){
 //    unsigned int aq_total_time=GetTimer();
     float aq_sleep_time=0;
@@ -1864,6 +1863,7 @@
 	   vout_time_usage+=tt;
 	   if(cur_vout_time_usage + tt > max_vout_time_usage)
 		    max_vout_time_usage = cur_vout_time_usage + tt;
+	   our_n_frames++;
 	}
 #endif
 //        usec_sleep(50000); // test only!




More information about the MPlayer-cvslog mailing list