[vlc-devel] commit: lpcm: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )

git version control git at videolan.org
Mon Dec 7 08:50:42 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 08:43:32 2009 +0100| [ddd3ca51c76468b7924055a37847e64a37850fc4] | committer: Rafaël Carré 

lpcm: use VLC_TS_INVALID (refs #3135)

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

 modules/codec/lpcm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index b209d24..ed8681c 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -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 );




More information about the vlc-devel mailing list