vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Wed May  9 16:06:22 
2018 +0200| [9143eafc854512d8a19e3fa789fb94726ad8689c] | committer: Steve Lhomme

stl: check the length is not VLC_TICK_INVALID explicitly

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

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

diff --git a/modules/codec/stl.c b/modules/codec/stl.c
index bf464c84f5..2344a6d727 100644
--- a/modules/codec/stl.c
+++ b/modules/codec/stl.c
@@ -422,7 +422,7 @@ static int Decode(decoder_t *p_dec, block_t *p_block)
                 {
                     p_sub->i_start    = p_block->i_pts;
                     p_sub->i_stop     = p_block->i_pts + p_block->i_length;
-                    p_sub->b_ephemer  = (p_block->i_length == 0);
+                    p_sub->b_ephemer  = (p_block->i_length == 
VLC_TICK_INVALID);
                 }
                 decoder_QueueSub(p_dec, p_sub);
             }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to