Skip to content

Commit

Permalink
avformat/xmv: use av_malloc_array()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Apr 15, 2014
1 parent 337f748 commit eead2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/xmv.c
Expand Up @@ -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;
Expand Down

0 comments on commit eead2cd

Please sign in to comment.