Browse Source

tools/ismindex.c: Use av_realloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
dede2f7fc4
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      tools/ismindex.c

+ 3
- 2
tools/ismindex.c View File

@@ -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);


Loading…
Cancel
Save