You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avformat/libnut: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -70,7 +70,7 @@ static int nut_write_header(AVFormatContext * avf) {
|
|||||||
nut_stream_header_tt * s;
|
nut_stream_header_tt * s;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
priv->s = s = av_mallocz((avf->nb_streams + 1) * sizeof*s);
|
priv->s = s = av_mallocz_array(avf->nb_streams + 1, sizeof*s);
|
||||||
if(!s)
|
if(!s)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user