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;
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;
}
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;