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

dmo: use VLC_TS_INVALID (refs #3135)

parent aac89d7d
...@@ -851,10 +851,11 @@ static void *DecBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -851,10 +851,11 @@ static void *DecBlock( decoder_t *p_dec, block_t **pp_block )
p_block = *pp_block; p_block = *pp_block;
/* Won't work with streams with B-frames, but do we have any ? */ /* Won't work with streams with B-frames, but do we have any ? */
if( p_block && p_block->i_pts <= 0 ) p_block->i_pts = p_block->i_dts; if( p_block && p_block->i_pts <= VLC_TS_INVALID )
p_block->i_pts = p_block->i_dts;
/* Date management */ /* Date management */
if( p_block && p_block->i_pts > 0 && if( p_block && p_block->i_pts > VLC_TS_INVALID &&
p_block->i_pts != date_Get( &p_sys->end_date ) ) p_block->i_pts != date_Get( &p_sys->end_date ) )
{ {
date_Set( &p_sys->end_date, p_block->i_pts ); date_Set( &p_sys->end_date, p_block->i_pts );
......
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