[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.46,1.47

Moritz Bunkus CVS syncmail at mplayerhq.hu
Fri Apr 23 18:36:36 CEST 2004


CVS change done by Moritz Bunkus CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv5876

Modified Files:
	demux_ogg.c 
Log Message:
Clear subs in broken OGM files (those without empty subtitle packets) a bit later in order to avoid flickering if there are more subs following immediately. Patch by Michael Reinsch <mr at uue adot org>

Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- demux_ogg.c	23 Apr 2004 16:31:30 -0000	1.46
+++ demux_ogg.c	23 Apr 2004 16:36:33 -0000	1.47
@@ -241,7 +241,7 @@
       if(pack->granulepos == -1)
         pack->granulepos = os->lastpos + os->lastsize;
       pts = (float)pack->granulepos/(float)os->samplerate;
-      clear_sub = 0.001 + pts + (float)duration/1000.0;
+      clear_sub = 1.0 + pts + (float)duration/1000.0;
     }
     while (1) {
       int c = packet[lcv++];




More information about the MPlayer-cvslog mailing list