Commit 7b52601d authored by François Cartegnie's avatar François Cartegnie 🤞

demux: mp4: set discontinuity on edit list change

fixes timestamp conversion errors using avcodec
refs samples/mov/editlist/menace00.mov
parent 3bf8a8ec
......@@ -443,6 +443,11 @@ static void MP4_Block_Send( demux_t *p_demux, mp4_track_t *p_track, block_t *p_b
}
p_block->i_flags |= p_track->i_block_flags;
if( p_track->i_next_block_flags )
{
p_block->i_flags |= p_track->i_next_block_flags;
p_track->i_next_block_flags = 0;
}
/* ASF packets in mov */
if( p_track->p_asf )
......@@ -3582,6 +3587,7 @@ static void MP4_TrackSetELST( demux_t *p_demux, mp4_track_t *tk,
if( i_elst_last != tk->i_elst )
{
msg_Warn( p_demux, "elst old=%d new=%d", i_elst_last, tk->i_elst );
tk->i_next_block_flags |= BLOCK_FLAG_DISCONTINUITY;
}
}
......
......@@ -82,6 +82,7 @@ typedef struct
es_format_t fmt;
uint32_t i_block_flags;
uint32_t i_next_block_flags;
uint8_t rgi_chans_reordering[AOUT_CHAN_MAX];
bool b_chans_reorder;
es_out_id_t *p_es;
......
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