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

demux: mp4: don't disable all referenced tracks (fix #3392)

Referenced chapter tracks might not contain chapter only data.
parent bd341a98
......@@ -2659,7 +2659,8 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
for( i = 0; i < p_chap->i_entry_count; i++ )
{
if( p_track->i_track_ID == p_chap->i_track_ID[i] )
if( p_track->i_track_ID == p_chap->i_track_ID[i] &&
p_track->fmt.i_cat == UNKNOWN_ES )
{
p_track->b_chapter = true;
p_track->b_enable = false;
......
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