[vlc-devel] [PATCH 1/3] demux/mp4: remove a memset following a calloc

Frédéric Yhuel fyhuel at viotech.net
Fri Mar 16 15:23:30 CET 2012


---
 modules/demux/mp4/mp4.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index a12ee42..6fc3721 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -495,7 +495,6 @@ static int Open( vlc_object_t * p_this )
     p_sys->track = calloc( p_sys->i_tracks, sizeof( mp4_track_t ) );
     if( p_sys->track == NULL )
         goto error;
-    memset( p_sys->track, 0, p_sys->i_tracks * sizeof( mp4_track_t ) );
 
     /* Search the first chap reference (like quicktime) and
      * check that at least 1 stream is enabled */
-- 
1.7.5.4




More information about the vlc-devel mailing list