diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-07 22:50:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-07 22:50:07 +0200 |
commit | f289422a3ea53db13f6072b5ae97e6fa2e3b7b09 (patch) | |
tree | 668659a445141a0a86315bf04332b05a3b639e04 /libavformat/ape.c | |
parent | 3662e251cbe0edc05cd03349a606a06f3bb96eda (diff) | |
download | ffmpeg-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.c | 2 |
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; |