diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 02:39:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 02:39:23 +0200 |
commit | dcad6ba68abbba579cf3d90ebffce13c7d68f41c (patch) | |
tree | 8ceedc1a56e87311d59e1e28d9592a4e6027e7e8 | |
parent | 78fb5f6e2aaa1fb9989209512be8cb7848264b77 (diff) | |
download | ffmpeg-dcad6ba68abbba579cf3d90ebffce13c7d68f41c.tar.gz |
avcodec/libxavs: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libxavs.c | 2 |
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(); |