summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-15 13:45:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-15 13:51:48 +0200
commiteead2cddb773bbb26e5ee66b6438d0a2190c4710 (patch)
treeaf44ceeef60b43f3ecc277cf81043eaba895ee89 /libavformat
parent337f74868c5c113730d787b97eed7d6b114eecf1 (diff)
avformat/xmv: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/xmv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index 705a302f0b..6eac4d21e8 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -182,7 +182,7 @@ static int xmv_read_header(AVFormatContext *s)
avio_skip(pb, 2); /* Unknown (padding?) */
- xmv->audio = av_malloc(xmv->audio_track_count * sizeof(XMVAudioPacket));
+ xmv->audio = av_malloc_array(xmv->audio_track_count, sizeof(XMVAudioPacket));
if (!xmv->audio) {
ret = AVERROR(ENOMEM);
goto fail;