Commit a33fcc11 authored by Rafaël Carré's avatar Rafaël Carré

input/es_out : use VLC_TS_INVALID (refs #3135)

parent 0bf00428
......@@ -1903,7 +1903,7 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
if( p_sys->i_preroll_end >= 0 )
{
int64_t i_date = p_block->i_pts;
if( i_date <= 0 )
if( p_block->i_pts <= VLC_TS_INVALID )
i_date = p_block->i_dts;
if( i_date < p_sys->i_preroll_end )
......
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