mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
tools/ismindex: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a69e16a97e
commit
b395167d56
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user