mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 18:31:37 +00:00
avformat/xmv: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
337f74868c
commit
eead2cddb7
@ -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…
Reference in New Issue
Block a user