mirror of https://github.com/mpv-player/mpv
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:
parent
0af4ae2425
commit
0c2f4a3989
|
@ -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++];
|
||||
|
|
Loading…
Reference in New Issue