Mercurial > mplayer.hg
comparison mplayer.c @ 6590:bfc209bb3f48
-frames 0 fix, multifile frames support by tibcu
author | alex |
---|---|
date | Fri, 28 Jun 2002 17:13:18 +0000 |
parents | eb10ce6b3f18 |
children | f554e7271587 |
comparison
equal
deleted
inserted
replaced
6589:1595ca898d3b | 6590:bfc209bb3f48 |
---|---|
231 | 231 |
232 static float force_fps=0; | 232 static float force_fps=0; |
233 static int force_srate=0; | 233 static int force_srate=0; |
234 static int frame_dropping=0; // option 0=no drop 1= drop vo 2= drop decode | 234 static int frame_dropping=0; // option 0=no drop 1= drop vo 2= drop decode |
235 static int play_n_frames=-1; | 235 static int play_n_frames=-1; |
236 static int play_n_frames_mf=-1; | |
236 | 237 |
237 // screen info: | 238 // screen info: |
238 char* video_driver=NULL; //"mga"; // default | 239 char* video_driver=NULL; //"mga"; // default |
239 char* audio_driver=NULL; | 240 char* audio_driver=NULL; |
240 | 241 |
1487 #endif | 1488 #endif |
1488 | 1489 |
1489 total_time_usage_start=GetTimer(); | 1490 total_time_usage_start=GetTimer(); |
1490 audio_time_usage=0; video_time_usage=0; vout_time_usage=0; | 1491 audio_time_usage=0; video_time_usage=0; vout_time_usage=0; |
1491 total_frame_cnt=0; drop_frame_cnt=0; // fix for multifile fps benchmark | 1492 total_frame_cnt=0; drop_frame_cnt=0; // fix for multifile fps benchmark |
1493 play_n_frames=play_n_frames_mf; | |
1494 | |
1495 if(play_n_frames==0){ | |
1496 eof=PT_NEXT_ENTRY; goto goto_next_file; | |
1497 } | |
1498 | |
1492 while(!eof){ | 1499 while(!eof){ |
1493 float aq_sleep_time=0; | 1500 float aq_sleep_time=0; |
1494 | 1501 |
1495 if(play_n_frames>=0){ | 1502 if(play_n_frames>=0){ |
1496 --play_n_frames; | 1503 --play_n_frames; |
1497 if(play_n_frames<0) eof = PT_NEXT_ENTRY; | 1504 if(play_n_frames<=0) eof = PT_NEXT_ENTRY; |
1498 } | 1505 } |
1499 | 1506 |
1500 /*========================== PLAY AUDIO ============================*/ | 1507 /*========================== PLAY AUDIO ============================*/ |
1501 | 1508 |
1502 while(sh_audio){ | 1509 while(sh_audio){ |