From: Jean-Paul Saman Date: Sun, 14 Jan 2007 22:27:48 +0000 (+0000) Subject: Remove useless test i_chunk is uint32_t and cannot be lower then zero. This fixes... X-Git-Tag: 0.9.0-test0~8815 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e6a39a3308e03cf5699f35fe7a13d04ccb636689;p=vlc Remove useless test i_chunk is uint32_t and cannot be lower then zero. This fixes a compile warninig and hopefully doesn't introduce an mp4 problem. Test your mp4's. --- diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c index a7ae6fcfe3..cc90eb67c4 100644 --- a/modules/demux/mp4/mp4.c +++ b/modules/demux/mp4/mp4.c @@ -1663,8 +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) || - (p_track->i_chunk >= p_track->i_chunk_count - 1) || + 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) ) {