]> git.sesse.net Git - vlc/commitdiff
cvdsub: use VLC_TS_INVALID (refs #3135)
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 07:25:57 +0000 (08:25 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 07:33:56 +0000 (08:33 +0100)
modules/codec/cvdsub.c

index d91dbc63a1d7507ff32cc6cdce025f9ee9a8bda8..0ca7c0de7e3af9faa23733101ab5135467cc2d42 100644 (file)
@@ -230,7 +230,7 @@ static block_t *Reassemble( decoder_t *p_dec, block_t *p_block )
      * to detect the first packet in a subtitle.  The first packet
      * seems to have a valid PTS while later packets for the same
      * image don't. */
-    if( p_sys->i_state == SUBTITLE_BLOCK_EMPTY && p_block->i_pts == 0 )
+    if( p_sys->i_state == SUBTITLE_BLOCK_EMPTY && p_block->i_pts <= VLC_TS_INVALID )
     {
         msg_Warn( p_dec, "first packet expected but no PTS present");
         return NULL;