mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 20:42:19 +00:00
avcodec/libxavs: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
78fb5f6e2a
commit
dcad6ba68a
@ -353,7 +353,7 @@ static av_cold int XAVS_init(AVCodecContext *avctx)
|
||||
if (!x4->enc)
|
||||
return -1;
|
||||
|
||||
if (!(x4->pts_buffer = av_mallocz((avctx->max_b_frames+1) * sizeof(*x4->pts_buffer))))
|
||||
if (!(x4->pts_buffer = av_mallocz_array((avctx->max_b_frames+1), sizeof(*x4->pts_buffer))))
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
avctx->coded_frame = av_frame_alloc();
|
||||
|
Loading…
Reference in New Issue
Block a user