[vlc-commits] spudec: init the start/stop timestamps to VLC_TICK_INVALID

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May  9 15:54:23 2018 +0200| [de1c60fa9f94aa7ce0cb25421f024d2e3fdc242e] | committer: Steve Lhomme

spudec: init the start/stop timestamps to VLC_TICK_INVALID

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

 modules/codec/spudec/parse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/spudec/parse.c b/modules/codec/spudec/parse.c
index bf7a3c0973..d0277457ab 100644
--- a/modules/codec/spudec/parse.c
+++ b/modules/codec/spudec/parse.c
@@ -191,7 +191,7 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
     spu_data_cmd.pi_alpha[3] = 0x0f;
 
     /* Initialize the structure */
-    p_spu->i_start = p_spu->i_stop = 0;
+    p_spu->i_start = p_spu->i_stop = VLC_TICK_INVALID;
     p_spu->b_ephemer = false;
 
     memset( p_spu_properties, 0, sizeof(*p_spu_properties) );
@@ -416,7 +416,7 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
         return VLC_EGENERIC;
     }
 
-    if( !p_spu->i_start )
+    if( p_spu->i_start == VLC_TICK_INVALID )
     {
         msg_Err( p_dec, "no `start display' command" );
         return VLC_EGENERIC;



More information about the vlc-commits mailing list