summaryrefslogtreecommitdiff
path: root/libavformat/4xm.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-09-28 17:16:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-28 18:13:52 +0200
commit0cc44facf17153454727c26f2f40ee2f77b90df5 (patch)
tree49fff9d9c952118fac6431bc8652c38bfe389627 /libavformat/4xm.c
parent769298a6869c3b16557280a63f6502409d1b5e49 (diff)
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>
Diffstat (limited to 'libavformat/4xm.c')
-rw-r--r--libavformat/4xm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c
index 92a001f691..cd4066d423 100644
--- a/libavformat/4xm.c
+++ b/libavformat/4xm.c
@@ -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;