diff options
author | 2003-10-15 16:46:55 +0000 | |
---|---|---|
committer | 2003-10-15 16:46:55 +0000 | |
commit | 0c2f4a3989efa56e846778bb0c5b5359dd17752c (patch) | |
tree | 6beeb58b38be67ef31910e5c6b2db3c69ab47d1a /libmpdemux/demux_ogg.c | |
parent | 0af4ae242500a5b2244618d52dea8886e84e7e2c (diff) |
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>.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11129 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_ogg.c')
-rw-r--r-- | libmpdemux/demux_ogg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c index 03577ce039..29d417b307 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -237,7 +237,7 @@ void demux_ogg_add_sub (ogg_stream_t* os,ogg_packet* pack) { 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++]; |