Skip to content
Snippets Groups Projects
Commit eead2cdd authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/xmv: use av_malloc_array()

parent 337f7486
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ static int xmv_read_header(AVFormatContext *s) ...@@ -182,7 +182,7 @@ static int xmv_read_header(AVFormatContext *s)
avio_skip(pb, 2); /* Unknown (padding?) */ 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) { if (!xmv->audio) {
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto fail; goto fail;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment