Browse Source

avformat/xmv: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
eead2cddb7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/xmv.c

+ 1
- 1
libavformat/xmv.c View File

@@ -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;


Loading…
Cancel
Save