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

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


vlc | branch: master | Steve Lhomme <robux4 at 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);
             }



More information about the vlc-commits mailing list