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

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May  9 16:10:59 2018 +0200| [382ede8976bcb91e445a2debfa86d3f7f7034482] | committer: Steve Lhomme

subsdec: check the length is not VLC_TICK_INVALID explicitly

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

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

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index 29c5b42fd1..52b6652dc2 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -457,7 +457,7 @@ static subpicture_t *ParseText( 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;
 
     subtext_updater_sys_t *p_spu_sys = p_spu->updater.p_sys;



More information about the vlc-commits mailing list