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

wmafixed: use VLC_TS_INVALID (refs #3135)

parent be3ed608
...@@ -229,12 +229,12 @@ static aout_buffer_t *DecodeFrame( decoder_t *p_dec, block_t **pp_block ) ...@@ -229,12 +229,12 @@ static aout_buffer_t *DecodeFrame( decoder_t *p_dec, block_t **pp_block )
} }
/* Date management */ /* Date management */
if( p_block->i_pts > 0 && if( 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 );
/* don't reuse the same pts */ /* don't reuse the same pts */
p_block->i_pts = 0; p_block->i_pts = VLC_TS_INVALID;
} }
else if( !date_Get( &p_sys->end_date ) ) else if( !date_Get( &p_sys->end_date ) )
{ {
......
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