changeset 12264:070cc45bef28

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>
author mosu
date Fri, 23 Apr 2004 16:36:33 +0000
parents 26be0fd618b5
children c9e1fe032d10
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Fri Apr 23 16:31:30 2004 +0000
+++ b/libmpdemux/demux_ogg.c	Fri Apr 23 16:36:33 2004 +0000
@@ -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++];