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
This commit is contained in:
mosu 2003-10-15 16:46:55 +00:00
parent 0af4ae2425
commit 0c2f4a3989
1 changed files with 1 additions and 1 deletions

View File

@ -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++];