Browse Source

4xm: Replace av_realloc by av_realloc_f when relevant.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Nicolas George Michael Niedermayer 14 years ago
parent
commit
0cc44facf1
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavformat/4xm.c

+ 3
- 2
libavformat/4xm.c View File

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


Loading…
Cancel
Save