Commit dede2f7f authored by Michael Niedermayer's avatar Michael Niedermayer

tools/ismindex.c: Use av_realloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a0a7b154
...@@ -532,8 +532,9 @@ static int handle_file(struct Tracks *tracks, const char *file, int split, ...@@ -532,8 +532,9 @@ static int handle_file(struct Tracks *tracks, const char *file, int split,
err = AVERROR(ENOMEM); err = AVERROR(ENOMEM);
goto fail; goto fail;
} }
temp = av_realloc(tracks->tracks, temp = av_realloc_array(tracks->tracks,
sizeof(*tracks->tracks) * (tracks->nb_tracks + 1)); tracks->nb_tracks + 1,
sizeof(*tracks->tracks));
if (!temp) { if (!temp) {
av_free(track); av_free(track);
err = AVERROR(ENOMEM); err = AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment