Commit 9a9a5f4a authored by Rafaël Carré's avatar Rafaël Carré

decoder stats: use VLC_TS_INVALID (refs #3135)

parent dce57371
...@@ -88,7 +88,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -88,7 +88,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
*(mtime_t *)(p_pic->p->p_pixels) = mdate(); *(mtime_t *)(p_pic->p->p_pixels) = mdate();
} }
p_pic->date = p_block->i_pts ? p_block->i_pts : p_block->i_dts; p_pic->date = p_block->i_pts > VLC_TS_INVALID ?
p_block->i_pts : p_block->i_dts;
p_pic->b_force = true; p_pic->b_force = true;
block_Release( p_block ); block_Release( p_block );
......
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