aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-06 21:08:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-06 21:08:33 +0100
commitdede2f7fc4441606fd07035e7c3e62421ec756b0 (patch)
tree3b6ee34ddc2534e74e2d41f01fd3e0c845305c23
parenta0a7b154bb49080d187170d0ed06e607fcc0b8d2 (diff)
downloadffmpeg-dede2f7fc4441606fd07035e7c3e62421ec756b0.tar.gz
tools/ismindex.c: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--tools/ismindex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/ismindex.c b/tools/ismindex.c
index d6386ac17d..47a148ccf6 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -532,8 +532,9 @@ static int handle_file(struct Tracks *tracks, const char *file, int split,
err = AVERROR(ENOMEM);
goto fail;
}
- temp = av_realloc(tracks->tracks,
- sizeof(*tracks->tracks) * (tracks->nb_tracks + 1));
+ temp = av_realloc_array(tracks->tracks,
+ tracks->nb_tracks + 1,
+ sizeof(*tracks->tracks));
if (!temp) {
av_free(track);
err = AVERROR(ENOMEM);