Commit ef6dd48f authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: mpeg4audio: flag discontinuity on timebase change

parent f26d2097
......@@ -1029,8 +1029,12 @@ static block_t *PacketizeStreamBlock(decoder_t *p_dec, block_t **pp_block)
/* New frame, set the Presentation Time Stamp */
p_sys->i_pts = p_sys->bytestream.p_block->i_pts;
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) != 0)
p_sys->b_discontuinity = true;
date_Set(&p_sys->end_date, p_sys->i_pts);
}
p_sys->i_state = STATE_HEADER;
break;
......
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