changeset 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 bfef1e331186
children 9a941857969a
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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++];