[vlc-commits] mp4: dead code

Rémi Denis-Courmont git at videolan.org
Thu Apr 24 20:17:23 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 24 21:17:01 2014 +0300| [17759a962cb36273adc7839ba2be4b9bb1c2722e] | committer: Rémi Denis-Courmont

mp4: dead code

ret cannot be NULL.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17759a962cb36273adc7839ba2be4b9bb1c2722e
---

 modules/demux/mp4/mp4.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 58df1ac..e289a2e 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -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];
-        if( !ret )
-            return NULL;
         if( ret->i_track_ID == tid )
             return ret;
     }



More information about the vlc-commits mailing list