From: Michael Niedermayer Date: Tue, 15 Apr 2014 11:45:26 +0000 (+0200) Subject: avformat/xmv: use av_malloc_array() X-Git-Tag: n2.3~1707 X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=eead2cddb773bbb26e5ee66b6438d0a2190c4710 avformat/xmv: use av_malloc_array() Signed-off-by: Michael Niedermayer --- 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;