]> git.sesse.net Git - vlc/commitdiff
wmafixed: use VLC_TS_INVALID (refs #3135)
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 16:38:21 +0000 (17:38 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 16:38:21 +0000 (17:38 +0100)
modules/codec/wmafixed/wma.c

index d261afe95ecd02422d478e8019a7aa4c7f602be8..027d94af5954d9ead112098e8aa62b23f33d9acc 100644 (file)
@@ -229,12 +229,12 @@ static aout_buffer_t *DecodeFrame( decoder_t *p_dec, block_t **pp_block )
     }
 
     /* 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 );
         /* don't reuse the same pts */
-        p_block->i_pts = 0;
+        p_block->i_pts = VLC_TS_INVALID;
     }
     else if( !date_Get( &p_sys->end_date ) )
     {