[vlc-commits] substx3g: check the length is not VLC_TICK_INVALID explicitly

Steve Lhomme git at videolan.org
Wed Sep 19 11:58:29 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May  9 17:22:04 2018 +0200| [70d55311e4ebb005b94d234ed525be5cd6f0829e] | committer: Steve Lhomme

substx3g: check the length is not VLC_TICK_INVALID explicitly

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70d55311e4ebb005b94d234ed525be5cd6f0829e
---

 modules/codec/substx3g.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/substx3g.c b/modules/codec/substx3g.c
index df49395f9e..553c48e726 100644
--- a/modules/codec/substx3g.c
+++ b/modules/codec/substx3g.c
@@ -414,7 +414,7 @@ static int Decode( decoder_t *p_dec, block_t *p_block )
 
     p_spu->i_start    = p_block->i_pts;
     p_spu->i_stop     = p_block->i_pts + p_block->i_length;
-    p_spu->b_ephemer  = (p_block->i_length == 0);
+    p_spu->b_ephemer  = (p_block->i_length == VLC_TICK_INVALID);
     p_spu->b_absolute = false;
 
     p_spu_sys->region.align = SUBPICTURE_ALIGN_BOTTOM;



More information about the vlc-commits mailing list