Commit 557bc597 authored by Rafaël Carré's avatar Rafaël Carré

mux_asf: use VLC_TS_INVALID (refs #3135)

parent 07e5e3a4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment