diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-15 13:45:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-15 13:51:48 +0200 |
commit | eead2cddb773bbb26e5ee66b6438d0a2190c4710 (patch) | |
tree | af44ceeef60b43f3ecc277cf81043eaba895ee89 /libavformat | |
parent | 337f74868c5c113730d787b97eed7d6b114eecf1 (diff) | |
download | ffmpeg-eead2cddb773bbb26e5ee66b6438d0a2190c4710.tar.gz |
avformat/xmv: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/xmv.c | 2 |
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; |