diff libmpdemux/demux_ogg.c @ 11128:db9ced943496

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@ura.dnsalias.org>.
author mosu
date Wed, 15 Oct 2003 16:46:55 +0000
parents d48eccbbb984
children 1efd0f9a946d
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Wed Oct 15 16:37:42 2003 +0000
+++ b/libmpdemux/demux_ogg.c	Wed Oct 15 16:46:55 2003 +0000
@@ -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++];