Commit 55c17a70 authored by Rafaël Carré's avatar Rafaël Carré

araw: use VLC_TS_INVALID (refs #3135)

parent c91d8dad
...@@ -336,7 +336,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -336,7 +336,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_block = *pp_block; p_block = *pp_block;
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 );
...@@ -349,7 +349,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -349,7 +349,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
} }
/* Don't re-use the same pts twice */ /* Don't re-use the same pts twice */
p_block->i_pts = 0; p_block->i_pts = VLC_TS_INVALID;
i_samples = p_block->i_buffer / p_sys->i_bytespersample / i_samples = p_block->i_buffer / p_sys->i_bytespersample /
p_dec->fmt_in.audio.i_channels; p_dec->fmt_in.audio.i_channels;
......
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