From 567dbc60c1076ca103a479dc0cd742db34e0969d Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Sun, 14 Jan 2007 22:25:56 +0000 Subject: [PATCH] Revert part of rev 18553 where p_track->i_chunk test has changed. It shouldn't have gone in this commit. --- modules/demux/mp4/mp4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c index 4ab6c3c5d2..a7ae6fcfe3 100644 --- a/modules/demux/mp4/mp4.c +++ b/modules/demux/mp4/mp4.c @@ -1663,7 +1663,7 @@ static int TrackGotoChunkSample( demux_t *p_demux, mp4_track_t *p_track, vlc_bool_t b_reselect = VLC_FALSE; /* now see if actual es is ok */ - if( (p_track->i_chunk == 0) || + if( (p_track->i_chunk < 0) || (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) ) -- 2.39.2