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

git version control git at videolan.org
Tue Dec 8 11:47:39 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Tue Dec  8 11:26:28 2009 +0100| [557bc59749550a218a735c5429eef3bf841fb5f0] | committer: Rafaël Carré 

mux_asf: use VLC_TS_INVALID (refs #3135)

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

 modules/mux/asf.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index 804e610..a50e3cf 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -213,8 +213,8 @@ static int Open( vlc_object_t *p_this )
     p_sys->pk = NULL;
     p_sys->i_pk_used    = 0;
     p_sys->i_pk_frame   = 0;
-    p_sys->i_dts_first  = -1;
-    p_sys->i_dts_last   = 0;
+    p_sys->i_dts_first  =
+    p_sys->i_dts_last   = VLC_TS_INVALID;
     p_sys->i_preroll_time = 2000;
     p_sys->i_bitrate    = 0;
     p_sys->i_bitrate_override = 0;
@@ -706,7 +706,7 @@ static int Mux( sout_mux_t *p_mux )
             return VLC_SUCCESS;
         }
 
-        if( p_sys->i_dts_first < 0 )
+        if( p_sys->i_dts_first < VLC_TS_INVALID )
         {
             p_sys->i_dts_first = i_dts;
         }
@@ -929,7 +929,7 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
 
     msg_Dbg( p_mux, "Asf muxer creating header" );
 
-    if( p_sys->i_dts_first > 0 )
+    if( p_sys->i_dts_first > VLC_TS_INVALID )
     {
         i_duration = p_sys->i_dts_last - p_sys->i_dts_first;
         if( i_duration < 0 ) i_duration = 0;




More information about the vlc-devel mailing list