Commit 4e18fe02 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: dts: notify discontinuities on timebase change

parent f12eff4d
...@@ -183,6 +183,8 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -183,6 +183,8 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
if( p_sys->i_pts > VLC_TS_INVALID && if( p_sys->i_pts > VLC_TS_INVALID &&
p_sys->i_pts != date_Get( &p_sys->end_date ) ) p_sys->i_pts != date_Get( &p_sys->end_date ) )
{ {
if( date_Get( &p_sys->end_date ) != VLC_TS_INVALID )
p_sys->b_discontinuity = true;
date_Set( &p_sys->end_date, p_sys->i_pts ); date_Set( &p_sys->end_date, p_sys->i_pts );
} }
p_sys->i_state = STATE_HEADER; p_sys->i_state = STATE_HEADER;
......
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