[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.20,1.21
Arpi of Ize
arpi at mplayer.dev.hu
Mon Oct 29 23:12:16 CET 2001
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv10620
Modified Files:
demux_mov.c
Log Message:
seek ebfore begin of the movie fixed
Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- demux_mov.c 29 Oct 2001 21:55:07 -0000 1.20
+++ demux_mov.c 29 Oct 2001 22:11:40 -0000 1.21
@@ -747,9 +747,11 @@
while(trak->pos<trak->chunks_size && trak->chunks[trak->pos].sample<sample) ++trak->pos;
pts=(float)(trak->chunks[trak->pos].sample*trak->duration)/(float)trak->timescale;
} else {
- unsigned int ipts=pts;
-// printf("MOV track seek - sample: %d \n",ipts);
- if(!(flags&1)) ipts+=trak->samples[trak->pos].pts;
+ unsigned int ipts;
+ if(!(flags&1)) pts+=trak->samples[trak->pos].pts;
+ if(pts<0) pts=0;
+ ipts=pts;
+ //printf("MOV track seek - sample: %d \n",ipts);
for(trak->pos=0;trak->pos<trak->samples_size;++trak->pos){
if(trak->samples[trak->pos].pts>=ipts) break; // found it!
}
More information about the MPlayer-cvslog
mailing list