[Mplayer-cvslog] CVS: main mplayer.c,1.147,1.148
GEREOFFY
arpi_esp at users.sourceforge.net
Mon Jun 4 21:30:26 CEST 2001
Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv9164
Modified Files:
mplayer.c
Log Message:
finished .asf seeking
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -C2 -r1.147 -r1.148
*** mplayer.c 2001/06/04 18:40:57 1.147
--- mplayer.c 2001/06/04 19:30:24 1.148
***************
*** 2220,2223 ****
--- 2220,2239 ----
// printf("\r -- asf: newpos=%d -- \n",newpos);
stream_seek(demuxer->stream,newpos);
+
+ ds_fill_buffer(d_video);
+ if(has_audio) ds_fill_buffer(d_audio);
+
+ while(1){
+ if(has_audio){
+ // sync audio:
+ if (d_video->pts > d_audio->pts){
+ if(!ds_fill_buffer(d_audio)) has_audio=0; // skip audio. EOF?
+ continue;
+ }
+ }
+ if(d_video->flags&1) break; // found a keyframe!
+ if(!ds_fill_buffer(d_video)) break; // skip frame. EOF?
+ }
+
}
break;
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list