aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-05 18:40:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-05 18:47:24 +0200
commitb395167d56d53ff021e11ec11b3f4b356d3383c6 (patch)
tree69ce0cb857a0a743c1ed4a79447455c613e8d8e9 /tools
parenta69e16a97e40f3841766347bd0c0ba2c672c51ca (diff)
downloadffmpeg-b395167d56d53ff021e11ec11b3f4b356d3383c6.tar.gz
tools/ismindex: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools')
-rw-r--r--tools/ismindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ismindex.c b/tools/ismindex.c
index 4dc3e125e3..759bc0f5a4 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;