# HG changeset patch # User mosu # Date 1082738193 0 # Node ID 070cc45bef28ebfdc1984f8bae4fedad4730f77c # Parent 26be0fd618b501aad642d53305b7f38af5494557 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 diff -r 26be0fd618b5 -r 070cc45bef28 libmpdemux/demux_ogg.c --- 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++];