[vlc-commits] codec: webvtt: handle discontinuity
Francois Cartegnie
git at videolan.org
Fri Oct 27 17:10:33 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Oct 27 17:03:04 2017 +0200| [582671c5828e1ba4ef85bfdd5ce3ddd505edf2d2] | committer: Francois Cartegnie
codec: webvtt: handle discontinuity
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=582671c5828e1ba4ef85bfdd5ce3ddd505edf2d2
---
modules/codec/webvtt/subsvtt.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/codec/webvtt/subsvtt.c b/modules/codec/webvtt/subsvtt.c
index d490e6bfde..bdc88853c4 100644
--- a/modules/codec/webvtt/subsvtt.c
+++ b/modules/codec/webvtt/subsvtt.c
@@ -1199,7 +1199,10 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block )
if( p_block == NULL ) /* No Drain */
return VLCDEC_SUCCESS;
- ExpireCues( p_dec, p_block->i_dts );
+ if( p_block->i_flags & BLOCK_FLAG_DISCONTINUITY )
+ ExpireCues( p_dec, INT64_MAX );
+ else
+ ExpireCues( p_dec, p_block->i_dts );
ProcessISOBMFF( p_dec, p_block->p_buffer, p_block->i_buffer,
p_block->i_pts, p_block->i_pts + p_block->i_length );
More information about the vlc-commits
mailing list