[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.35,1.36

Moritz Bunkus CVS mosu at mplayerhq.hu
Wed Oct 15 18:47:35 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv12992

Modified Files:
	demux_ogg.c 
Log Message:
Clear subs a bit later than requested in order to avoid clearing the subs if the following entry starts exactly after this one. Patch by Jarrod Johnson <jbj-mplayer at ura.dnsalias.org>.

Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- demux_ogg.c	4 Oct 2003 22:00:25 -0000	1.35
+++ demux_ogg.c	15 Oct 2003 16:46:55 -0000	1.36
@@ -237,7 +237,7 @@
       if(pack->granulepos == -1)
         pack->granulepos = os->lastpos + os->lastsize;
       pts = (float)pack->granulepos/(float)os->samplerate;
-      clear_sub = pts + (float)duration/1000.0;
+      clear_sub = 0.001 + pts + (float)duration/1000.0;
     }
     while (1) {
       int c = packet[lcv++];



More information about the MPlayer-cvslog mailing list