mp4: dead code
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 24 Apr 2014 18:17:01 +0000 (21:17 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 24 Apr 2014 18:17:01 +0000 (21:17 +0300)
ret cannot be NULL.

modules/demux/mp4/mp4.c

index 58df1ac..e289a2e 100644 (file)
@@ -3529,8 +3529,6 @@ static mp4_track_t *MP4_frg_GetTrackByID( demux_t *p_demux, const uint32_t tid )
     for( unsigned i = 0; i < p_sys->i_tracks; i++ )
     {
         ret = &p_sys->track[i];
     for( unsigned i = 0; i < p_sys->i_tracks; i++ )
     {
         ret = &p_sys->track[i];
-        if( !ret )
-            return NULL;
         if( ret->i_track_ID == tid )
             return ret;
     }
         if( ret->i_track_ID == tid )
             return ret;
     }