Commit 0cc44fac authored by Nicolas George's avatar Nicolas George Committed by Michael Niedermayer

4xm: Replace av_realloc by av_realloc_f when relevant.

Signed-off-by: 's avatarNicolas George <nicolas.george@normalesup.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 769298a6
......@@ -174,8 +174,9 @@ static int fourxm_read_header(AVFormatContext *s,
}
if (current_track + 1 > fourxm->track_count) {
fourxm->track_count = current_track + 1;
fourxm->tracks = av_realloc(fourxm->tracks,
fourxm->track_count * sizeof(AudioTrack));
fourxm->tracks = av_realloc_f(fourxm->tracks,
sizeof(AudioTrack),
fourxm->track_count);
if (!fourxm->tracks) {
ret= AVERROR(ENOMEM);
goto fail;
......
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