From a4119f6b1568523dc3932478518857b24d84ae17 Mon Sep 17 00:00:00 2001 From: nick Date: Sun, 24 Feb 2002 17:00:19 +0000 Subject: [PATCH] make -frames key optional for max/total benchmark git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4844 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mplayer.c b/mplayer.c index 411d6038d4..80e664a058 100644 --- a/mplayer.c +++ b/mplayer.c @@ -256,7 +256,7 @@ static float force_fps=0; 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 @@ InitTimer(); 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 @@ if(!(vo_flags&256)){ // flag 256 means: libvo driver does its timing (dvb card) 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!