aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libxavs.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-22 02:39:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-22 02:39:23 +0200
commitdcad6ba68abbba579cf3d90ebffce13c7d68f41c (patch)
tree8ceedc1a56e87311d59e1e28d9592a4e6027e7e8 /libavcodec/libxavs.c
parent78fb5f6e2aaa1fb9989209512be8cb7848264b77 (diff)
downloadffmpeg-dcad6ba68abbba579cf3d90ebffce13c7d68f41c.tar.gz
avcodec/libxavs: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libxavs.c')
-rw-r--r--libavcodec/libxavs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c
index ffe3411c96..92dceceac1 100644
--- a/libavcodec/libxavs.c
+++ b/libavcodec/libxavs.c
@@ -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();