From 94a2e5cd09df4839919950d0463a5f6889e8efac Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Fri, 21 Nov 2008 21:28:26 +0100 Subject: [PATCH] Do not recreate the decoder when unneeded (mp4). --- modules/demux/mp4/mp4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c index 369c632238..36469afc08 100644 --- a/modules/demux/mp4/mp4.c +++ b/modules/demux/mp4/mp4.c @@ -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 ); -- 2.20.1