[FFmpeg-cvslog] avcodec/libxavs: Use av_mallocz_array()
Michael Niedermayer
git at videolan.org
Tue Apr 22 02:48:07 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 22 02:39:23 2014 +0200| [dcad6ba68abbba579cf3d90ebffce13c7d68f41c] | committer: Michael Niedermayer
avcodec/libxavs: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dcad6ba68abbba579cf3d90ebffce13c7d68f41c
---
libavcodec/libxavs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c
index ffe3411..92dcece 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();
More information about the ffmpeg-cvslog
mailing list