[Mplayer-cvslog] CVS: main mplayer.c,1.190,1.191

Arpi of Ize arpi at mplayer.dev.hu
Sat Jul 28 23:21:57 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv17062

Modified Files:
	mplayer.c 
Log Message:
mpeg seeking fixed

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -r1.190 -r1.191
--- mplayer.c	28 Jul 2001 21:18:21 -0000	1.190
+++ mplayer.c	28 Jul 2001 21:21:54 -0000	1.191
@@ -1700,7 +1700,7 @@
         if(!sh_video->i_bps) // unspecified?
           newpos=demuxer->filepos+2324*75*rel_seek_secs; // 174.3 kbyte/sec
         else
-          newpos=demuxer->filepos+(sh_video->i_bps*1000/16)*rel_seek_secs;
+          newpos=demuxer->filepos+(sh_video->i_bps)*rel_seek_secs;
 
         if(newpos<seek_to_byte) newpos=seek_to_byte;
         newpos&=~(STREAM_BUFFER_SIZE-1);  /* sector boundary */




More information about the MPlayer-cvslog mailing list