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

avcodec audio decoder: stricter PTS output

Only trust demuxer PTS if it is higher than what we expected
Fix demuxers that send several packets with identical PTS
Close #8453
parent 32e1b2cb
......@@ -316,7 +316,7 @@ block_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block )
date_Init( &p_sys->end_date, ctx->sample_rate, 1 );
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 );
}
......
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