comparison mplayer.c @ 15895:7742302e793d

Do not count skipped/broken frames when using -frames
author reimar
date Sun, 03 Jul 2005 10:09:09 +0000
parents 0b8c08580412
children ab9b25d60934
comparison
equal deleted inserted replaced
15894:688fa06538ef 15895:7742302e793d
2238 } 2238 }
2239 2239
2240 while(!eof){ 2240 while(!eof){
2241 float aq_sleep_time=0; 2241 float aq_sleep_time=0;
2242 2242
2243 if(play_n_frames>=0){
2244 --play_n_frames;
2245 if(play_n_frames<0) eof = PT_NEXT_ENTRY;
2246 }
2247
2248 /*========================== PLAY AUDIO ============================*/ 2243 /*========================== PLAY AUDIO ============================*/
2249 2244
2250 while(sh_audio){ 2245 while(sh_audio){
2251 unsigned int t; 2246 unsigned int t;
2252 double tt; 2247 double tt;
2519 else if (j > frame_time + frame_time * FRAME_LAG_WARN) 2514 else if (j > frame_time + frame_time * FRAME_LAG_WARN)
2520 too_slow_frame_cnt++; 2515 too_slow_frame_cnt++;
2521 /* printf ("PANIC: too slow frame (%.3f)!\n", j); */ 2516 /* printf ("PANIC: too slow frame (%.3f)!\n", j); */
2522 2517
2523 if(vo_config_count) video_out->flip_page(); 2518 if(vo_config_count) video_out->flip_page();
2519 if (play_n_frames >= 0) {
2520 --play_n_frames;
2521 if (play_n_frames < 0) eof = PT_NEXT_ENTRY;
2522 }
2523
2524 // usec_sleep(50000); // test only! 2524 // usec_sleep(50000); // test only!
2525 t2=GetTimer()-t2; 2525 t2=GetTimer()-t2;
2526 tt = t2*0.000001f; 2526 tt = t2*0.000001f;
2527 vout_time_usage+=tt; 2527 vout_time_usage+=tt;
2528 } else { 2528 } else {