]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libxavs.c
Merge commit 'a4ed995cabf220029f1d0e185a6fb45eed7b4091'
[ffmpeg] / libavcodec / libxavs.c
index ffe3411c960a48bc4f3ab3f439f53cbaa65ef10d..92dceceac17f1e1c828a81f10730a6ee79fd2370 100644 (file)
@@ -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();