You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/xmv: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user