Commit 94a2e5cd authored by Laurent Aimar's avatar Laurent Aimar

Do not recreate the decoder when unneeded (mp4).

parent 31412310
......@@ -1958,9 +1958,9 @@ static int TrackGotoChunkSample( demux_t *p_demux, mp4_track_t *p_track,
bool b_reselect = false;
/* now see if actual es is ok */
if( (p_track->i_chunk >= p_track->i_chunk_count - 1) ||
(p_track->chunk[p_track->i_chunk].i_sample_description_index !=
p_track->chunk[i_chunk].i_sample_description_index) )
if( p_track->i_chunk >= p_track->i_chunk_count ||
p_track->chunk[p_track->i_chunk].i_sample_description_index !=
p_track->chunk[i_chunk].i_sample_description_index )
{
msg_Warn( p_demux, "recreate ES for track[Id 0x%x]",
p_track->i_track_ID );
......
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