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

index b209d24e16aff7d7404f2ba0c047abfe205615b3..ed8681c322e12e53e6bdc96a0ce8c3d8b4381df5 100644 (file)
@@ -268,7 +268,7 @@ static void *DecodeFrame( decoder_t *p_dec, block_t **pp_block )
     *pp_block = NULL; /* So the packet doesn't get re-sent */
 
     /* Date management */
-    if( p_block->i_pts > 0 &&
+    if( p_block->i_pts > VLC_TS_INVALID &&
         p_block->i_pts != date_Get( &p_sys->end_date ) )
     {
         date_Set( &p_sys->end_date, p_block->i_pts );