diff options
author | mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-04-23 16:36:33 +0000 |
---|---|---|
committer | mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-04-23 16:36:33 +0000 |
commit | 3d2d5a763f4d313c9347d6f32847480597aed488 (patch) | |
tree | a2c2261d3697f890ca78861bbbab1b1007b02ccc /libmpdemux/demux_ogg.c | |
parent | a965ebf6b2c3654948688164b705f56fdb749de7 (diff) | |
download | mpv-3d2d5a763f4d313c9347d6f32847480597aed488.tar.bz2 mpv-3d2d5a763f4d313c9347d6f32847480597aed488.tar.xz |
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>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12265 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 7dfb2b46e3..7700bcb839 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -241,7 +241,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 = 0.001 + pts + (float)duration/1000.0; + clear_sub = 1.0 + pts + (float)duration/1000.0; } while (1) { int c = packet[lcv++]; |