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

git version control git at videolan.org
Mon Dec 7 17:55:09 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 17:38:21 2009 +0100| [e715c83044de384c345c9c04e5748d60cbd83215] | committer: Rafaël Carré 

wmafixed: use VLC_TS_INVALID (refs #3135)

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

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

diff --git a/modules/codec/wmafixed/wma.c b/modules/codec/wmafixed/wma.c
index d261afe..027d94a 100644
--- a/modules/codec/wmafixed/wma.c
+++ b/modules/codec/wmafixed/wma.c
@@ -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 ) )
     {




More information about the vlc-devel mailing list