changeset 4843:00c875a22d10

make -frames key optional for max/total benchmark
author nick
date Sun, 24 Feb 2002 17:00:19 +0000
parents b048e303e8f1
children 76acf5bbda78
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Feb 24 16:31:27 2002 +0000
+++ b/mplayer.c	Sun Feb 24 17:00:19 2002 +0000
@@ -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!