# HG changeset patch # User nick # Date 1014570019 0 # Node ID 00c875a22d1014752ae930765a57b5beeef09faa # Parent b048e303e8f181c552ba46cb4091590d3befcc40 make -frames key optional for max/total benchmark diff -r b048e303e8f1 -r 00c875a22d10 mplayer.c --- 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!