[FFmpeg-cvslog] tools/ismindex: use av_mallocz_array()

Michael Niedermayer git at videolan.org
Mon May 5 18:57:46 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May  5 18:40:55 2014 +0200| [b395167d56d53ff021e11ec11b3f4b356d3383c6] | committer: Michael Niedermayer

tools/ismindex: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b395167d56d53ff021e11ec11b3f4b356d3383c6
---

 tools/ismindex.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/ismindex.c b/tools/ismindex.c
index 4dc3e12..759bc0f 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -163,7 +163,7 @@ static int read_tfra(struct Tracks *tracks, int start_index, AVIOContext *f)
     }
     fieldlength = avio_rb32(f);
     track->chunks  = avio_rb32(f);
-    track->offsets = av_mallocz(sizeof(*track->offsets) * track->chunks);
+    track->offsets = av_mallocz_array(track->chunks, sizeof(*track->offsets));
     if (!track->offsets) {
         ret = AVERROR(ENOMEM);
         goto fail;



More information about the ffmpeg-cvslog mailing list