Commit 895d419f authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: mp4: validate smooth tracks only after init

parent f3590c78
......@@ -3454,7 +3454,7 @@ static int MP4_SmoothTrackCreate( demux_t *p_demux, mp4_track_t *p_track, MP4_Bo
if( !p_data )
return VLC_EGENERIC;
p_track->b_ok = true;
p_track->b_ok = false;
p_track->b_selected = false;
p_track->i_sample_count = UINT32_MAX;
......@@ -3533,6 +3533,8 @@ static int MP4_SmoothTrackCreate( demux_t *p_demux, mp4_track_t *p_track, MP4_Bo
break;
}
p_track->b_ok = true;
return VLC_SUCCESS;
}
......
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