]> git.sesse.net Git - vlc/commitdiff
Make parenthesis explicite
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 12 Jan 2007 12:42:51 +0000 (12:42 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 12 Jan 2007 12:42:51 +0000 (12:42 +0000)
modules/demux/mp4/mp4.c

index fbdac062e8d93a70fc94c3f7bc6049f1c0b24e80..4ab6c3c5d2b39c5996375d777c3da90b751402d8 100644 (file)
@@ -1663,10 +1663,10 @@ 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 ||
-        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 == 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) )
     {
         msg_Warn( p_demux, "recreate ES for track[Id 0x%x]",
                   p_track->i_track_ID );