[vlc-commits] demux/mp4: remove a memset following a calloc

Frédéric Yhuel git at videolan.org
Mon Mar 19 15:45:10 CET 2012


vlc | branch: master | Frédéric Yhuel <fyhuel at viotech.net> | Fri Mar 16 15:23:30 2012 +0100| [5ed8741fe14e4c6b6c084ff54b3c74fd016b34c4] | committer: Jean-Baptiste Kempf

demux/mp4: remove a memset following a calloc

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 */



More information about the vlc-commits mailing list