]> git.sesse.net Git - vlc/commitdiff
Remove useless test i_chunk is uint32_t and cannot be lower then zero. This fixes...
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 14 Jan 2007 22:27:48 +0000 (22:27 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 14 Jan 2007 22:27:48 +0000 (22:27 +0000)
modules/demux/mp4/mp4.c

index a7ae6fcfe312f7dfafd3f55fd30ca3b97ec3f108..cc90eb67c4dacd9dba7fee5608b5261477589616 100644 (file)
@@ -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) )
     {