aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/ape.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-07 22:50:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-07 22:50:07 +0200
commitf289422a3ea53db13f6072b5ae97e6fa2e3b7b09 (patch)
tree668659a445141a0a86315bf04332b05a3b639e04 /libavformat/ape.c
parent3662e251cbe0edc05cd03349a606a06f3bb96eda (diff)
downloadffmpeg-f289422a3ea53db13f6072b5ae97e6fa2e3b7b09.tar.gz
avformat/ape: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ape.c')
-rw-r--r--libavformat/ape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ape.c b/libavformat/ape.c
index 28f73d3072..69b001a578 100644
--- a/libavformat/ape.c
+++ b/libavformat/ape.c
@@ -268,7 +268,7 @@ static int ape_read_header(AVFormatContext * s)
ape->seektablelength / sizeof(*ape->seektable), ape->totalframes);
return AVERROR_INVALIDDATA;
}
- ape->frames = av_malloc(ape->totalframes * sizeof(APEFrame));
+ ape->frames = av_malloc_array(ape->totalframes, sizeof(APEFrame));
if(!ape->frames)
return AVERROR(ENOMEM);
ape->firstframe = ape->junklength + ape->descriptorlength + ape->headerlength + ape->seektablelength + ape->wavheaderlength;